Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
प्रदर्शन
लेआउट
विभाजित
संयुक्त
रियल-टाइम एडिटर
रिक्त स्थान छिपाएँ
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
परिवर्तन हाइलाइट करें
स्मार्ट
सिंटैक्स
कोई नहीं
दिखावट बदलें
प्रोसेसिंग
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
Untitled diff
बनाया गया
8 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
6 हटाए गए
लाइनें
कुल
हटाया गया
अक्षर
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
939 लाइनें
सभी को कॉपी करें
17 जोड़े गए
लाइनें
कुल
जोड़ा गया
अक्षर
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
934 लाइनें
सभी को कॉपी करें
// Typescript declarations for Apex class and module.
// Typescript declarations for Apex class and module.
// Note: When you have a class and a module with the same name; the module is merged
// Note: When you have a class and a module with the same name; the module is merged
// with the class. This is necessary since apexcharts exports the main ApexCharts class only.
// with the class. This is necessary since apexcharts exports the main ApexCharts class only.
//
//
// This is a sparse typed declarations of chart interfaces. See Apex Chart documentation
// This is a sparse typed declarations of chart interfaces. See Apex Chart documentation
// for comprehensive API: https://apexcharts.com/docs/options
// for comprehensive API: https://apexcharts.com/docs/options
//
//
// There is on-going work to provide a comprehensive typed definition for this component.
// There is on-going work to provide a comprehensive typed definition for this component.
// See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/28733
// See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/28733
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
declare
class ApexCharts {
declare
module 'apexcharts' {
export default
class ApexCharts {
constructor(el: any, options: any);
constructor(el: any, options: any);
render(): Promise<void>;
render(): Promise<void>;
updateOptions(options: any, redrawPaths?: boolean, animate?: boolean): Promise<void>;
updateOptions(options: any, redrawPaths?: boolean, animate?: boolean): Promise<void>;
updateSeries(newSeries: ApexAxisChartSeries | ApexNonAxisChartSeries, animate?: boolean): void;
updateSeries(newSeries: ApexAxisChartSeries | ApexNonAxisChartSeries, animate?: boolean): void;
appendSeries(newSeries: ApexAxisChartSeries | ApexNonAxisChartSeries, animate?: boolean): void;
appendSeries(newSeries: ApexAxisChartSeries | ApexNonAxisChartSeries, animate?: boolean): void;
toggleSeries(seriesName: string): void;
toggleSeries(seriesName: string): void;
destroy(): void;
destroy(): void;
addXaxisAnnotation(options: any, pushToMemory?: boolean, context?: any): void;
addXaxisAnnotation(options: any, pushToMemory?: boolean, context?: any): void;
addYaxisAnnotation(options: any, pushToMemory?: boolean, context?: any): void;
addYaxisAnnotation(options: any, pushToMemory?: boolean, context?: any): void;
addPointAnnotation(options: any, pushToMemory?: boolean, context?: any): void;
addPointAnnotation(options: any, pushToMemory?: boolean, context?: any): void;
addText(options: any, pushToMemory?: boolean, context?: any): void;
addText(options: any, pushToMemory?: boolean, context?: any): void;
dataURI(): Promise<void>;
dataURI(): Promise<void>;
static exec(chartID: string, fn: () => void, options: any): any;
static exec(chartID: string, fn: () => void, options: any): any;
static initOnLoad(): void;
static initOnLoad(): void;
}
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
declare module ApexCharts {
export interface ApexOptions {
export interface ApexOptions {
annotations?: ApexAnnotations;
annotations?: ApexAnnotations;
chart?: ApexChart;
chart?: ApexChart;
colors?: any[];
colors?: any[];
dataLabels?: ApexDataLabels;
dataLabels?: ApexDataLabels;
fill?: ApexFill;
fill?: ApexFill;
grid?: ApexGrid;
grid?: ApexGrid;
labels?: string[];
labels?: string[];
legend?: ApexLegend;
legend?: ApexLegend;
markers?: ApexMarkers;
markers?: ApexMarkers;
noData?: ApexNoData;
noData?: ApexNoData;
plotOptions?: ApexPlotOptions;
plotOptions?: ApexPlotOptions;
responsive?: ApexResponsive[];
responsive?: ApexResponsive[];
series?: ApexAxisChartSeries | ApexNonAxisChartSeries;
series?: ApexAxisChartSeries | ApexNonAxisChartSeries;
states?: ApexStates;
states?: ApexStates;
stroke?: ApexStroke;
stroke?: ApexStroke;
subtitle?: ApexTitleSubtitle;
subtitle?: ApexTitleSubtitle;
theme?: ApexTheme;
theme?: ApexTheme;
title?: ApexTitleSubtitle;
title?: ApexTitleSubtitle;
tooltip?: ApexTooltip;
tooltip?: ApexTooltip;
xaxis?: ApexXAxis;
xaxis?: ApexXAxis;
yaxis?: ApexYAxis | ApexYAxis[];
yaxis?: ApexYAxis | ApexYAxis[];
}
}
}
}
/**
/**
* Main Chart options
* Main Chart options
* See https://apexcharts.com/docs/options/chart/
* See https://apexcharts.com/docs/options/chart/
*/
*/
type ApexChart = {
type ApexChart = {
width?: string | number;
width?: string | number;
height?: string | number;
height?: string | number;
type?: "line" | "area" | "bar" | "histogram" | "pie" | "donut" |
type?: "line" | "area" | "bar" | "histogram" | "pie" | "donut" |
"radialBar" | "scatter" | "bubble" | "heatmap" | "candlestick" | "radar" | "rangeBar";
"radialBar" | "scatter" | "bubble" | "heatmap" | "candlestick" | "radar" | "rangeBar";
foreColor?: string;
foreColor?: string;
fontFamily?: string;
fontFamily?: string;
background?: string;
background?: string;
offsetX?: number;
offsetX?: number;
offsetY?: number;
offsetY?: number;
dropShadow?: {
dropShadow?: {
enabled?: boolean;
enabled?: boolean;
top?: number;
top?: number;
left?: number;
left?: number;
blur?: number;
blur?: number;
opacity?: number;
opacity?: number;
};
};
events?: {
events?: {
animationEnd?(chart: any, options: any): void;
animationEnd?(chart: any, options: any): void;
beforeMount?(chart: any, options: any): void;
beforeMount?(chart: any, options: any): void;
mounted?(chart: any, options: any): void;
mounted?(chart: any, options: any): void;
updated?(chart: any, options: any): void;
updated?(chart: any, options: any): void;
click?(e: any, chart: any, options: any): void;
click?(e: any, chart: any, options: any): void;
legendClick?(chart: any, seriesIndex: number, options: any): void;
legendClick?(chart: any, seriesIndex: number, options: any): void;
markerClick?(e: any, chart: any, options: any): void;
markerClick?(e: any, chart: any, options: any): void;
selection?(chart: any, options: any): void;
selection?(chart: any, options: any): void;
dataPointSelection?(e: any, chart: any, options: any): void;
dataPointSelection?(e: any, chart: any, options: any): void;
dataPointMouseEnter?(e: any, chart: any, options: any): void;
dataPointMouseEnter?(e: any, chart: any, options: any): void;
dataPointMouseLeave?(e: any, chart: any, options: any): void;
dataPointMouseLeave?(e: any, chart: any, options: any): void;
beforeZoom?(chart: any, options: any): void;
beforeZoom?(chart: any, options: any): void;
zoomed?(chart: any, options: any): void;
zoomed?(chart: any, options: any): void;
scrolled?(chart: any, options: any): void;
scrolled?(chart: any, options: any): void;
};
};
brush?: {
brush?: {
enabled?: boolean;
enabled?: boolean;
autoScaleYaxis?: boolean,
autoScaleYaxis?: boolean,
target?: string;
target?: string;
};
};
id?: string;
id?: string;
locales?: ApexLocale[];
locales?: ApexLocale[];
defaultLocale?: string;
defaultLocale?: string;
parentHeightOffset?: number;
parentHeightOffset?: number;
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
// Typescript declarations for Apex class and module. // Note: When you have a class and a module with the same name; the module is merged // with the class. This is necessary since apexcharts exports the main ApexCharts class only. // // This is a sparse typed declarations of chart interfaces. See Apex Chart documentation // for comprehensive API: https://apexcharts.com/docs/options // // There is on-going work to provide a comprehensive typed definition for this component. // See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/28733 declare class ApexCharts { constructor(el: any, options: any); render(): Promise<void>; updateOptions(options: any, redrawPaths?: boolean, animate?: boolean): Promise<void>; updateSeries(newSeries: ApexAxisChartSeries | ApexNonAxisChartSeries, animate?: boolean): void; appendSeries(newSeries: ApexAxisChartSeries | ApexNonAxisChartSeries, animate?: boolean): void; toggleSeries(seriesName: string): void; destroy(): void; addXaxisAnnotation(options: any, pushToMemory?: boolean, context?: any): void; addYaxisAnnotation(options: any, pushToMemory?: boolean, context?: any): void; addPointAnnotation(options: any, pushToMemory?: boolean, context?: any): void; addText(options: any, pushToMemory?: boolean, context?: any): void; dataURI(): Promise<void>; static exec(chartID: string, fn: () => void, options: any): any; static initOnLoad(): void; } declare module ApexCharts { export interface ApexOptions { annotations?: ApexAnnotations; chart?: ApexChart; colors?: any[]; dataLabels?: ApexDataLabels; fill?: ApexFill; grid?: ApexGrid; labels?: string[]; legend?: ApexLegend; markers?: ApexMarkers; noData?: ApexNoData; plotOptions?: ApexPlotOptions; responsive?: ApexResponsive[]; series?: ApexAxisChartSeries | ApexNonAxisChartSeries; states?: ApexStates; stroke?: ApexStroke; subtitle?: ApexTitleSubtitle; theme?: ApexTheme; title?: ApexTitleSubtitle; tooltip?: ApexTooltip; xaxis?: ApexXAxis; yaxis?: ApexYAxis | ApexYAxis[]; } } /** * Main Chart options * See https://apexcharts.com/docs/options/chart/ */ type ApexChart = { width?: string | number; height?: string | number; type?: "line" | "area" | "bar" | "histogram" | "pie" | "donut" | "radialBar" | "scatter" | "bubble" | "heatmap" | "candlestick" | "radar" | "rangeBar"; foreColor?: string; fontFamily?: string; background?: string; offsetX?: number; offsetY?: number; dropShadow?: { enabled?: boolean; top?: number; left?: number; blur?: number; opacity?: number; }; events?: { animationEnd?(chart: any, options: any): void; beforeMount?(chart: any, options: any): void; mounted?(chart: any, options: any): void; updated?(chart: any, options: any): void; click?(e: any, chart: any, options: any): void; legendClick?(chart: any, seriesIndex: number, options: any): void; markerClick?(e: any, chart: any, options: any): void; selection?(chart: any, options: any): void; dataPointSelection?(e: any, chart: any, options: any): void; dataPointMouseEnter?(e: any, chart: any, options: any): void; dataPointMouseLeave?(e: any, chart: any, options: any): void; beforeZoom?(chart: any, options: any): void; zoomed?(chart: any, options: any): void; scrolled?(chart: any, options: any): void; }; brush?: { enabled?: boolean; autoScaleYaxis?: boolean, target?: string; }; id?: string; locales?: ApexLocale[]; defaultLocale?: string; parentHeightOffset?: number; sparkline?: { enabled?: boolean; }; stacked?: boolean; stackType?: "normal" | "100%"; toolbar?: { show?: boolean; tools?: { download?: boolean | string; selection?: boolean | string; zoom?: boolean | string; zoomin?: boolean | string; zoomout?: boolean | string; pan?: boolean | string; reset?: boolean | string; }; autoSelected?: "zoom" | "selection" | "pan"; }; zoom?: { enabled?: boolean; type?: "x" | "y" | "xy"; zoomedArea?: { fill?: { color?: string; opacity?: number }; stroke?: { color?: string; opacity?: number; width?: number } } }; selection?: { enabled?: boolean; type?: string; fill?: { color?: string; opacity?: number; }; stroke?: { width?: number; color?: string; opacity?: number; dashArray?: number }; xaxis?: { min?: number; max?: number; }; yaxis?: { min?: number; max?: number }; }; animations?: { enabled?: boolean; easing?: "linear" | "easein" | "easeout" | "easeinout"; speed?: number; animateGradually?: { enabled?: boolean; delay?: number; } dynamicAnimation?: { enabled?: boolean; speed?: number; } }; }; type ApexStates = { normal?: { filter?: { type?: string, value?: number } }, hover?: { filter?: { type?: string, value?: number } }, active?: { allowMultipleDataPointsSelection?: boolean, filter?: { type?: string, value?: number } } }; /** * Chart Title options * See https://apexcharts.com/docs/options/title/ */ type ApexTitleSubtitle = { text?: string; align?: "left" | "center" | "right"; margin?: number; offsetX?: number; offsetY?: number; floating?: number; style?: { fontSize?: string; color?: string; }; }; /** * Chart Series options. * Use ApexNonAxisChartSeries for Pie and Donut charts. * See https://apexcharts.com/docs/options/series/ * * According to the documentation at * https://apexcharts.com/docs/series/ * Section 1: data can be a list of single numbers * Sections 2.1 and 3.1: data can be a list of tuples of two numbers * Sections 2.2 and 3.2: data can be a list of objects where x is a string * and y is a number */ export type ApexAxisChartSeries = { name: string; data: number[] | { x: any; y: any }[] | [number, number][] | [number, number[]][]; }[]; export type ApexNonAxisChartSeries = number[]; /** * Options for the line drawn on line and area charts. * See https://apexcharts.com/docs/options/stroke/ */ type ApexStroke = { show?: boolean; curve?: "smooth" | "straight" | "stepline"; lineCap?: "butt" | "square" | "round"; colors?: string; width?: number; dashArray?: number | number[] }; type ApexAnnotations = { position?: string; yaxis?: YAxisAnnotations[]; xaxis?: XAxisAnnotations[]; points?: PointAnnotations[]; }; type AnnotationLabel = { borderColor?: string; borderWidth?: number; text?: string; textAnchor?: string; offsetX?: number; offsetY?: number; style?: AnnotationStyle; position?: string; orientation?: string; }; type AnnotationStyle = { background?: string; color?: string; fontSize?: string; cssClass?: string; padding?: { left?: number; right?: number; top?: number; bottom?: number; }; }; type XAxisAnnotations = { x?: number; x2?: number; strokeDashArray?: number; fillColor?: string, borderColor?: string; opacity?: number; offsetX?: number; offsetY?: number; label?: { borderColor?: string; borderWidth?: number; text?: string; textAnchor?: string; position?: string; orientation?: string; offsetX?: number; offsetY?: number; style?: AnnotationStyle; }; }; type YAxisAnnotations = { y?: number; y2?: number, strokeDashArray?: number; fillColor?: string, borderColor?: string; opacity?: number; offsetX?: number; offsetY?: number; yAxisIndex?: number; label?: AnnotationLabel; }; type PointAnnotations = { x?: number; y?: null; yAxisIndex?: number; seriesIndex?: number; marker?: { size?: number; fillColor?: string; strokeColor?: string; strokeWidth?: number; shape?: string; offsetX?: number; offsetY?: number; radius?: number; cssClass?: string; }; label?: AnnotationLabel; }; /** * Options for localization. * See https://apexcharts.com/docs/options/chart/locales */ type ApexLocale = { name?: string; options?: { months?: string[]; shortMonths?: string[]; days?: string[]; shortDays?: string[]; toolbar?: { download?: string; selection?: string; selectionZoom?: string; zoomIn?: string; zoomOut?: string; pan?: string; reset?: string; } } } /** * PlotOptions for specifying chart-type-specific configuration. * See https://apexcharts.com/docs/options/plotoptions/bar/ */ type ApexPlotOptions = { bar?: { horizontal?: boolean; columnWidth?: string; barHeight?: string; distributed?: boolean; colors?: { ranges?: { from?: number; to?: number; color?: string; }[]; backgroundBarColors?: string[]; backgroundBarOpacity?: number; }; dataLabels?: { maxItems?: number; hideOverflowingLabels?: boolean; position?: string; } }; candlestick?: { colors?: { upward?: string; downward?: string; }; wick?: { useFillColor?: boolean } }; heatmap?: { radius?: number; enableShades?: boolean; shadeIntensity?: number; distributed?: boolean; colorScale?: { ranges?: { from?: number; to?: number; color?: string; name?: string; }[]; inverse?: boolean; min?: number; max?: number; } }; pie?: { size?: number; customScale?: number; offsetX?: number; offsetY?: number; expandOnClick?: boolean; dataLabels?: { offset?: number; minAngleToShowLabel?: number; }; donut?: { size?: string; background?: string; labels: { show?: boolean; name?: { show?: boolean; fontSize?: string; fontFamily?: string; color?: string; offsetY?: number }; value?: { show?: boolean; fontSize?: string; fontFamily?: string; color?: string; offsetY?: number; formatter?(val: string): string; }; total?: { show?: boolean; label?: string; color?: string; formatter?(w: any): string; } } }; }; radar?: { size?: number; offsetX?: number; offsetY?: number; polygons?: { strokeColor?: string | string[]; connectorColors?: string | string[]; fill?: { colors?: string[] } } }; radialBar?: { size?: number; inverseOrder?: boolean; startAngle?: number; endAngle?: number; offsetX?: number; offsetY?: number; hollow?: { margin?: number; size?: string; background?: string; image?: string; width?: number; height?: number; offsetX?: number; offsetY?: number; clipped?: boolean; position?: "front" | "back"; }; track?: { show?: boolean; startAngle?: number; endAngle?: number; background?: string; strokeWidth?: string; opacity?: number; margin?: number; dropShadow?: { enabled?: boolean; top?: number; left?: number; blur?: number; opacity?: number } }; dataLabels?: { show?: boolean; name?: { show?: boolean; fontSize?: string; color?: string; offsetY?: number; }; value?: { show?: boolean; fontSize?: string; color?: string; offsetY?: number; formatter?(val: number): string; }; total?: { show?: boolean; label?: string; color?: string; formatter?(opts: any): string; }; } } }; type ApexFill = { colors?: any[]; opacity?: number; type?: string; gradient?: { shade?: string; type?: string; shadeIntensity?: number; gradientToColors?: string[]; inverseColors?: boolean; opacityFrom?: number; opacityTo?: number; stops?: number[] }; image?: { src?: string[]; width?: number; height?: number }; pattern?: { style?: string; width?: number; height?: number; strokeWidth?: number; }; }; /** * Chart Legend configuration options. * See https://apexcharts.com/docs/options/legend/ */ type ApexLegend = { show?: boolean; showForSingleSeries?: boolean; showForNullSeries?: boolean; showForZeroSeries?: boolean; floating?: boolean; position?: "top" | "right" | "bottom" | "left"; horizontalAlign?: "left" | "center" | "right"; fontSize?: string; fontFamily?: string; width?: number; height?: number; offsetX?: number; offsetY?: number; formatter?(val: string, opts: any): string; textAnchor?: string; labels?: { color?: string useSeriesColors?: boolean; }; markers?: { width?: number; height?: number; strokeColor?: string strokeWidth?: number; offsetX?: number; offsetY?: number; radius?: number; shape?: "circle" | "square"; customHTML?(): string; onClick?(): void; }; itemMargin?: { horizontal?: number; vertical?: number; }; containerMargin?: { left?: number; top?: number; }; onItemClick?: { toggleDataSeries?: boolean; }; onItemHover?: { highlightDataSeries?: boolean; } }; type ApexDiscretePoint = { seriesIndex?: number; dataPointIndex?: number; fillColor?: string; strokeColor?: string; size?: number; } type ApexMarkers = { size?: number; colors?: string[]; strokeColor?: string; strokeWidth?: number; strokeOpacity?: number; fillOpacity?: number; discrete?: ApexDiscretePoint[]; shape?: 'circle' | 'square'; radius?: number; offsetX?: number; offsetY?: number; hover?: { size?: number; sizeOffset?: number; }; } type ApexNoData = { text?: string, align?: 'left' | 'right' | 'center', verticalAlign?: 'top' | 'middle' | 'bottom', offsetX?: number, offsetY?: number, style?: { color?: string, fontSize?: string, fontFamily?: string } } /** * Chart Datalabels options * See https://apexcharts.com/docs/options/datalabels/ */ type ApexDataLabels = { enabled?: boolean; enabledOnSeries?: number[]; formatter?(val: number, opts: any): string; textAnchor?: "start" | "middle" | "end"; offsetX?: number; offsetY?: number; style?: { fontSize?: string; fontFamily?: string; colors?: string[]; }; dropShadow?: { enabled: boolean; top?: number; left?: number; blur?: number; opacity?: number; } }; type ApexResponsive = { breakpoint?: number; options?: any; }; /** * Chart Tooltip options * See https://apexcharts.com/docs/options/tooltip/ */ type ApexTooltip = { enabled?: boolean; shared?: boolean; followCursor?: boolean; intersect?: boolean; inverseOrder?: boolean; custom?(options: any): void; fillSeriesColor?: boolean; theme?: string; style?: { fontSize?: string; fontFamily?: string; }; onDatasetHover?: { highlightDAtaSeries?: boolean; }; x?: { show?: boolean; format?: string; formatter?(val: number): string; } y?: { formatter?(val: number): string; title?: { formatter?(seriesName: string): string; } }; z?: { formatter?(val: number): string; title?: string }; marker?: { show?: boolean }; items?: { display?: string }; fixed?: { enabled?: boolean; position?: string; // topRight; topLeft; bottomRight; bottomLeft offsetX?: number; offsetY?: number } }; /** * X Axis options * See https://apexcharts.com/docs/options/xaxis/ */ type ApexXAxis = { type?: "categories" | "datetime" | "numeric"; categories?: string[] | number[]; labels?: { show?: boolean; rotate?: number; rotateAlways?: boolean; hideOverlappingLabels?: boolean; showDuplicates?: boolean; trim?: boolean; minHeight?: number; maxHeight?: number; style?: { colors?: string[]; fontSize?: string; fontFamily?: string; cssClass?: string; }; offsetX?: number; offsetY?: number; format?: string; formatter?(value: string, timestamp: number): string; datetimeFormatter?: { year?: string; month?: string; day?: string; hour?: string; minute?: string; }; }; axisBorder?: { show?: boolean; color?: string; offsetX?: number; offsetY?: number; strokeWidth?: number; }; axisTicks?: { show?: boolean; borderType?: string; color?: string; height?: number; offsetX?: number; offsetY?: number; }; tickAmount?: number; min?: number; max?: number; range?: number; floating?: boolean; position?: string; title?: { text?: string; offsetX?: number; offsetY?: number; style?: { color?: string; fontSize?: string; cssClass?: string; }; }; crosshairs?: { show?: boolean; width?: number | string; position?: string; opacity?: number; stroke?: { color?: string; width?: number; dashArray?: number; }; fill?: { type?: string; color?: string; gradient?: { colorFrom?: string; colorTo?: string; stops?: number[]; opacityFrom?: number; opacityTo?: number; }; }; dropShadow?: { enabled?: boolean; top?: number; left?: number; blur?: number; opacity?: number; }; }; tooltip?: { enabled?: boolean; offsetY?: number; }; }; /** * Y Axis options * See https://apexcharts.com/docs/options/yaxis/ */ type ApexYAxis = { show?: boolean; showAlways?: boolean; seriesName?: string; opposite?: boolean; logarithmic?: boolean; tickAmount?: number; forceNiceScale?: boolean, min?: number; max?: number; floating?: boolean; decimalsInFloat?: number; labels?: { show?: boolean; minWidth?: number; maxWidth?: number; offsetX?: number; offsetY?: number; rotate?: number; align?: 'left' | 'center' | 'right'; padding?: number, style?: { color?: string; fontSize?: string; fontFamily?: string; cssClass?: string; }; formatter?(val: number): string; }; axisBorder?: { show?: boolean; color?: string; offsetX?: number; offsetY?: number }; axisTicks?: { show?: boolean; color?: string; width?: number; offsetX?: number; offsetY?: number }; title?: { text?: string; rotate?: number; offsetX?: number; offsetY?: number; style?: { color?: string; fontSize?: string; fontFamily?: string; cssClass?: string; }; }; crosshairs?: { show?: boolean; position?: string; stroke?: { color?: string; width?: number; dashArray?: number }; }; tooltip?: { enabled?: boolean; offsetX?: number; }; }; /** * Plot X and Y grid options * See https://apexcharts.com/docs/options/grid/ */ type ApexGrid = { show?: boolean; borderColor?: string; strokeDashArray?: number; position?: "front" | "back"; xaxis?: { lines?: { show?: boolean; offsetX?: number; offsetY?: number; } }; yaxis?: { lines?: { show?: boolean; offsetX?: number; offsetY?: number; } }; row?: { colors?: string[]; opacity?: number }; column?: { colors?: string[]; opacity?: number; }; padding?: { top?: number; right?: number; bottom?: number; left?: number; }; }; type ApexTheme = { mode?: "light" | "dark"; palette?: string; monochrome?: { enabled?: boolean, color?: string; shadeTo?: "light" | "dark"; shadeIntensity?: number } } declare module "apexcharts" { export = ApexCharts; }
परिवर्तित टेक्स्ट
फ़ाइल खोलें
// Typescript declarations for Apex class and module. // Note: When you have a class and a module with the same name; the module is merged // with the class. This is necessary since apexcharts exports the main ApexCharts class only. // // This is a sparse typed declarations of chart interfaces. See Apex Chart documentation // for comprehensive API: https://apexcharts.com/docs/options // // There is on-going work to provide a comprehensive typed definition for this component. // See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/28733 declare module 'apexcharts' { export default class ApexCharts { constructor(el: any, options: any); render(): Promise<void>; updateOptions(options: any, redrawPaths?: boolean, animate?: boolean): Promise<void>; updateSeries(newSeries: ApexAxisChartSeries | ApexNonAxisChartSeries, animate?: boolean): void; appendSeries(newSeries: ApexAxisChartSeries | ApexNonAxisChartSeries, animate?: boolean): void; toggleSeries(seriesName: string): void; destroy(): void; addXaxisAnnotation(options: any, pushToMemory?: boolean, context?: any): void; addYaxisAnnotation(options: any, pushToMemory?: boolean, context?: any): void; addPointAnnotation(options: any, pushToMemory?: boolean, context?: any): void; addText(options: any, pushToMemory?: boolean, context?: any): void; dataURI(): Promise<void>; static exec(chartID: string, fn: () => void, options: any): any; static initOnLoad(): void; } export interface ApexOptions { annotations?: ApexAnnotations; chart?: ApexChart; colors?: any[]; dataLabels?: ApexDataLabels; fill?: ApexFill; grid?: ApexGrid; labels?: string[]; legend?: ApexLegend; markers?: ApexMarkers; noData?: ApexNoData; plotOptions?: ApexPlotOptions; responsive?: ApexResponsive[]; series?: ApexAxisChartSeries | ApexNonAxisChartSeries; states?: ApexStates; stroke?: ApexStroke; subtitle?: ApexTitleSubtitle; theme?: ApexTheme; title?: ApexTitleSubtitle; tooltip?: ApexTooltip; xaxis?: ApexXAxis; yaxis?: ApexYAxis | ApexYAxis[]; } } /** * Main Chart options * See https://apexcharts.com/docs/options/chart/ */ type ApexChart = { width?: string | number; height?: string | number; type?: "line" | "area" | "bar" | "histogram" | "pie" | "donut" | "radialBar" | "scatter" | "bubble" | "heatmap" | "candlestick" | "radar" | "rangeBar"; foreColor?: string; fontFamily?: string; background?: string; offsetX?: number; offsetY?: number; dropShadow?: { enabled?: boolean; top?: number; left?: number; blur?: number; opacity?: number; }; events?: { animationEnd?(chart: any, options: any): void; beforeMount?(chart: any, options: any): void; mounted?(chart: any, options: any): void; updated?(chart: any, options: any): void; click?(e: any, chart: any, options: any): void; legendClick?(chart: any, seriesIndex: number, options: any): void; markerClick?(e: any, chart: any, options: any): void; selection?(chart: any, options: any): void; dataPointSelection?(e: any, chart: any, options: any): void; dataPointMouseEnter?(e: any, chart: any, options: any): void; dataPointMouseLeave?(e: any, chart: any, options: any): void; beforeZoom?(chart: any, options: any): void; zoomed?(chart: any, options: any): void; scrolled?(chart: any, options: any): void; }; brush?: { enabled?: boolean; autoScaleYaxis?: boolean, target?: string; }; id?: string; locales?: ApexLocale[]; defaultLocale?: string; parentHeightOffset?: number; sparkline?: { enabled?: boolean; }; stacked?: boolean; stackType?: "normal" | "100%"; toolbar?: { show?: boolean; tools?: { download?: boolean | string; selection?: boolean | string; zoom?: boolean | string; zoomin?: boolean | string; zoomout?: boolean | string; pan?: boolean | string; reset?: boolean | string; }; autoSelected?: "zoom" | "selection" | "pan"; }; zoom?: { enabled?: boolean; type?: "x" | "y" | "xy"; zoomedArea?: { fill?: { color?: string; opacity?: number }; stroke?: { color?: string; opacity?: number; width?: number } } }; selection?: { enabled?: boolean; type?: string; fill?: { color?: string; opacity?: number; }; stroke?: { width?: number; color?: string; opacity?: number; dashArray?: number }; xaxis?: { min?: number; max?: number; }; yaxis?: { min?: number; max?: number }; }; animations?: { enabled?: boolean; easing?: "linear" | "easein" | "easeout" | "easeinout"; speed?: number; animateGradually?: { enabled?: boolean; delay?: number; } dynamicAnimation?: { enabled?: boolean; speed?: number; } }; }; type ApexStates = { normal?: { filter?: { type?: string, value?: number } }, hover?: { filter?: { type?: string, value?: number } }, active?: { allowMultipleDataPointsSelection?: boolean, filter?: { type?: string, value?: number } } }; /** * Chart Title options * See https://apexcharts.com/docs/options/title/ */ type ApexTitleSubtitle = { text?: string; align?: "left" | "center" | "right"; margin?: number; offsetX?: number; offsetY?: number; floating?: number; style?: { fontSize?: string; color?: string; }; }; /** * Chart Series options. * Use ApexNonAxisChartSeries for Pie and Donut charts. * See https://apexcharts.com/docs/options/series/ * * According to the documentation at * https://apexcharts.com/docs/series/ * Section 1: data can be a list of single numbers * Sections 2.1 and 3.1: data can be a list of tuples of two numbers * Sections 2.2 and 3.2: data can be a list of objects where x is a string * and y is a number */ export type ApexAxisChartSeries = { name: string; data: number[] | { x: any; y: any }[] | [number, number][] | [number, number[]][]; }[]; export type ApexNonAxisChartSeries = number[]; /** * Options for the line drawn on line and area charts. * See https://apexcharts.com/docs/options/stroke/ */ type ApexStroke = { show?: boolean; curve?: "smooth" | "straight" | "stepline"; lineCap?: "butt" | "square" | "round"; colors?: string; width?: number; dashArray?: number | number[] }; type ApexAnnotations = { position?: string; yaxis?: YAxisAnnotations[]; xaxis?: XAxisAnnotations[]; points?: PointAnnotations[]; }; type AnnotationLabel = { borderColor?: string; borderWidth?: number; text?: string; textAnchor?: string; offsetX?: number; offsetY?: number; style?: AnnotationStyle; position?: string; orientation?: string; }; type AnnotationStyle = { background?: string; color?: string; fontSize?: string; cssClass?: string; padding?: { left?: number; right?: number; top?: number; bottom?: number; }; }; type XAxisAnnotations = { x?: number; x2?: number; strokeDashArray?: number; fillColor?: string, borderColor?: string; opacity?: number; offsetX?: number; offsetY?: number; label?: { borderColor?: string; borderWidth?: number; text?: string; textAnchor?: string; position?: string; orientation?: string; offsetX?: number; offsetY?: number; style?: AnnotationStyle; }; }; type YAxisAnnotations = { y?: number; y2?: number, strokeDashArray?: number; fillColor?: string, borderColor?: string; opacity?: number; offsetX?: number; offsetY?: number; yAxisIndex?: number; label?: AnnotationLabel; }; type PointAnnotations = { x?: number; y?: null; yAxisIndex?: number; seriesIndex?: number; marker?: { size?: number; fillColor?: string; strokeColor?: string; strokeWidth?: number; shape?: string; offsetX?: number; offsetY?: number; radius?: number; cssClass?: string; }; label?: AnnotationLabel; }; /** * Options for localization. * See https://apexcharts.com/docs/options/chart/locales */ type ApexLocale = { name?: string; options?: { months?: string[]; shortMonths?: string[]; days?: string[]; shortDays?: string[]; toolbar?: { download?: string; selection?: string; selectionZoom?: string; zoomIn?: string; zoomOut?: string; pan?: string; reset?: string; } } } /** * PlotOptions for specifying chart-type-specific configuration. * See https://apexcharts.com/docs/options/plotoptions/bar/ */ type ApexPlotOptions = { bar?: { horizontal?: boolean; columnWidth?: string; barHeight?: string; distributed?: boolean; colors?: { ranges?: { from?: number; to?: number; color?: string; }[]; backgroundBarColors?: string[]; backgroundBarOpacity?: number; }; dataLabels?: { maxItems?: number; hideOverflowingLabels?: boolean; position?: string; } }; candlestick?: { colors?: { upward?: string; downward?: string; }; wick?: { useFillColor?: boolean } }; heatmap?: { radius?: number; enableShades?: boolean; shadeIntensity?: number; distributed?: boolean; colorScale?: { ranges?: { from?: number; to?: number; color?: string; name?: string; }[]; inverse?: boolean; min?: number; max?: number; } }; pie?: { size?: number; customScale?: number; offsetX?: number; offsetY?: number; expandOnClick?: boolean; dataLabels?: { offset?: number; minAngleToShowLabel?: number; }; donut?: { size?: string; background?: string; labels: { show?: boolean; name?: { show?: boolean; fontSize?: string; fontFamily?: string; color?: string; offsetY?: number }; value?: { show?: boolean; fontSize?: string; fontFamily?: string; color?: string; offsetY?: number; formatter?(val: string): string; }; total?: { show?: boolean; label?: string; color?: string; formatter?(w: any): string; } } }; }; radar?: { size?: number; offsetX?: number; offsetY?: number; polygons?: { strokeColor?: string | string[]; connectorColors?: string | string[]; fill?: { colors?: string[] } } }; radialBar?: { size?: number; inverseOrder?: boolean; startAngle?: number; endAngle?: number; offsetX?: number; offsetY?: number; hollow?: { margin?: number; size?: string; background?: string; image?: string; width?: number; height?: number; offsetX?: number; offsetY?: number; clipped?: boolean; position?: "front" | "back"; }; track?: { show?: boolean; startAngle?: number; endAngle?: number; background?: string; strokeWidth?: string; opacity?: number; margin?: number; dropShadow?: { enabled?: boolean; top?: number; left?: number; blur?: number; opacity?: number } }; dataLabels?: { show?: boolean; name?: { show?: boolean; fontSize?: string; color?: string; offsetY?: number; }; value?: { show?: boolean; fontSize?: string; color?: string; offsetY?: number; formatter?(val: number): string; }; total?: { show?: boolean; label?: string; color?: string; formatter?(opts: any): string; }; } } }; type ApexFill = { colors?: any[]; opacity?: number; type?: string; gradient?: { shade?: string; type?: string; shadeIntensity?: number; gradientToColors?: string[]; inverseColors?: boolean; opacityFrom?: number; opacityTo?: number; stops?: number[] }; image?: { src?: string[]; width?: number; height?: number }; pattern?: { style?: string; width?: number; height?: number; strokeWidth?: number; }; }; /** * Chart Legend configuration options. * See https://apexcharts.com/docs/options/legend/ */ type ApexLegend = { show?: boolean; showForSingleSeries?: boolean; showForNullSeries?: boolean; showForZeroSeries?: boolean; floating?: boolean; position?: "top" | "right" | "bottom" | "left"; horizontalAlign?: "left" | "center" | "right"; fontSize?: string; fontFamily?: string; width?: number; height?: number; offsetX?: number; offsetY?: number; formatter?(val: string, opts: any): string; textAnchor?: string; labels?: { color?: string useSeriesColors?: boolean; }; markers?: { width?: number; height?: number; strokeColor?: string strokeWidth?: number; offsetX?: number; offsetY?: number; radius?: number; shape?: "circle" | "square"; customHTML?(): string; onClick?(): void; }; itemMargin?: { horizontal?: number; vertical?: number; }; containerMargin?: { left?: number; top?: number; }; onItemClick?: { toggleDataSeries?: boolean; }; onItemHover?: { highlightDataSeries?: boolean; } }; type ApexDiscretePoint = { seriesIndex?: number; dataPointIndex?: number; fillColor?: string; strokeColor?: string; size?: number; } type ApexMarkers = { size?: number; colors?: string[]; strokeColor?: string; strokeWidth?: number; strokeOpacity?: number; fillOpacity?: number; discrete?: ApexDiscretePoint[]; shape?: 'circle' | 'square'; radius?: number; offsetX?: number; offsetY?: number; hover?: { size?: number; sizeOffset?: number; }; } type ApexNoData = { text?: string, align?: 'left' | 'right' | 'center', verticalAlign?: 'top' | 'middle' | 'bottom', offsetX?: number, offsetY?: number, style?: { color?: string, fontSize?: string, fontFamily?: string } } /** * Chart Datalabels options * See https://apexcharts.com/docs/options/datalabels/ */ type ApexDataLabels = { enabled?: boolean; enabledOnSeries?: number[]; formatter?(val: number, opts: any): string; textAnchor?: "start" | "middle" | "end"; offsetX?: number; offsetY?: number; style?: { fontSize?: string; fontFamily?: string; colors?: string[]; }; dropShadow?: { enabled: boolean; top?: number; left?: number; blur?: number; opacity?: number; } }; type ApexResponsive = { breakpoint?: number; options?: any; }; /** * Chart Tooltip options * See https://apexcharts.com/docs/options/tooltip/ */ type ApexTooltip = { enabled?: boolean; shared?: boolean; followCursor?: boolean; intersect?: boolean; inverseOrder?: boolean; custom?(options: any): void; fillSeriesColor?: boolean; theme?: string; style?: { fontSize?: string; fontFamily?: string; }; onDatasetHover?: { highlightDAtaSeries?: boolean; }; x?: { show?: boolean; format?: string; formatter?(val: number): string; } y?: { formatter?(val: number): string; title?: { formatter?(seriesName: string): string; } }; z?: { formatter?(val: number): string; title?: string }; marker?: { show?: boolean }; items?: { display?: string }; fixed?: { enabled?: boolean; position?: string; // topRight; topLeft; bottomRight; bottomLeft offsetX?: number; offsetY?: number } }; /** * X Axis options * See https://apexcharts.com/docs/options/xaxis/ */ type ApexXAxis = { type?: "categories" | "datetime" | "numeric"; categories?: string[] | number[]; labels?: { show?: boolean; rotate?: number; rotateAlways?: boolean; hideOverlappingLabels?: boolean; showDuplicates?: boolean; trim?: boolean; minHeight?: number; maxHeight?: number; style?: { colors?: string[]; fontSize?: string; fontFamily?: string; cssClass?: string; }; offsetX?: number; offsetY?: number; format?: string; formatter?(value: string, timestamp: number): string; datetimeFormatter?: { year?: string; month?: string; day?: string; hour?: string; minute?: string; }; }; axisBorder?: { show?: boolean; color?: string; offsetX?: number; offsetY?: number; strokeWidth?: number; }; axisTicks?: { show?: boolean; borderType?: string; color?: string; height?: number; offsetX?: number; offsetY?: number; }; tickAmount?: number; min?: number; max?: number; range?: number; floating?: boolean; position?: string; title?: { text?: string; offsetX?: number; offsetY?: number; style?: { color?: string; fontSize?: string; cssClass?: string; }; }; crosshairs?: { show?: boolean; width?: number | string; position?: string; opacity?: number; stroke?: { color?: string; width?: number; dashArray?: number; }; fill?: { type?: string; color?: string; gradient?: { colorFrom?: string; colorTo?: string; stops?: number[]; opacityFrom?: number; opacityTo?: number; }; }; dropShadow?: { enabled?: boolean; top?: number; left?: number; blur?: number; opacity?: number; }; }; tooltip?: { enabled?: boolean; offsetY?: number; }; }; /** * Y Axis options * See https://apexcharts.com/docs/options/yaxis/ */ type ApexYAxis = { show?: boolean; showAlways?: boolean; seriesName?: string; opposite?: boolean; logarithmic?: boolean; tickAmount?: number; forceNiceScale?: boolean, min?: number; max?: number; floating?: boolean; decimalsInFloat?: number; labels?: { show?: boolean; minWidth?: number; maxWidth?: number; offsetX?: number; offsetY?: number; rotate?: number; align?: 'left' | 'center' | 'right'; padding?: number, style?: { color?: string; fontSize?: string; fontFamily?: string; cssClass?: string; }; formatter?(val: number): string; }; axisBorder?: { show?: boolean; color?: string; offsetX?: number; offsetY?: number }; axisTicks?: { show?: boolean; color?: string; width?: number; offsetX?: number; offsetY?: number }; title?: { text?: string; rotate?: number; offsetX?: number; offsetY?: number; style?: { color?: string; fontSize?: string; fontFamily?: string; cssClass?: string; }; }; crosshairs?: { show?: boolean; position?: string; stroke?: { color?: string; width?: number; dashArray?: number }; }; tooltip?: { enabled?: boolean; offsetX?: number; }; }; /** * Plot X and Y grid options * See https://apexcharts.com/docs/options/grid/ */ type ApexGrid = { show?: boolean; borderColor?: string; strokeDashArray?: number; position?: "front" | "back"; xaxis?: { lines?: { show?: boolean; offsetX?: number; offsetY?: number; } }; yaxis?: { lines?: { show?: boolean; offsetX?: number; offsetY?: number; } }; row?: { colors?: string[]; opacity?: number }; column?: { colors?: string[]; opacity?: number; }; padding?: { top?: number; right?: number; bottom?: number; left?: number; }; }; type ApexTheme = { mode?: "light" | "dark"; palette?: string; monochrome?: { enabled?: boolean, color?: string; shadeTo?: "light" | "dark"; shadeIntensity?: number } }
अंतर खोजें