Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:#4801 The return type of the dataLabels formatter has been redefine #4802

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 50 additions & 50 deletions types/apexcharts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ declare class ApexCharts {
clearAnnotations(options?: any): void
dataURI(options?: { scale?: number, width?: number }): Promise<{ imgURI: string } | { blob: Blob }>
static exec(chartID: string, fn: string, ...args: Array<any>): any
static getChartByID(chartID: string): ApexCharts|undefined
static getChartByID(chartID: string): ApexCharts | undefined
static initOnLoad(): void
exports: {
cleanup(): string
Expand Down Expand Up @@ -101,22 +101,22 @@ type ApexChart = {
width?: string | number
height?: string | number
type?:
| 'line'
| 'area'
| 'bar'
| 'pie'
| 'donut'
| 'radialBar'
| 'scatter'
| 'bubble'
| 'heatmap'
| 'candlestick'
| 'boxPlot'
| 'radar'
| 'polarArea'
| 'rangeBar'
| 'rangeArea'
| 'treemap'
| 'line'
| 'area'
| 'bar'
| 'pie'
| 'donut'
| 'radialBar'
| 'scatter'
| 'bubble'
| 'heatmap'
| 'candlestick'
| 'boxPlot'
| 'radar'
| 'polarArea'
| 'rangeBar'
| 'rangeArea'
| 'treemap'
foreColor?: string
fontFamily?: string
background?: string
Expand Down Expand Up @@ -314,29 +314,29 @@ type ApexAxisChartSeries = {
hidden?: boolean
zIndex?: number
data:
| (number | null)[]
| {
x: any;
y: any;
fill?: ApexFill;
fillColor?: string;
strokeColor?: string;
meta?: any;
goals?: {
name?: string,
value: number,
strokeHeight?: number;
strokeWidth?: number;
strokeColor?: string;
strokeDashArray?: number;
strokeLineCap?: 'butt' | 'square' | 'round'
}[];
barHeightOffset?: number;
columnWidthOffset?: number;
}[]
| [number, number | null][]
| [number, (number | null)[]][]
| number[][];
| (number | null)[]
| {
x: any;
y: any;
fill?: ApexFill;
fillColor?: string;
strokeColor?: string;
meta?: any;
goals?: {
name?: string,
value: number,
strokeHeight?: number;
strokeWidth?: number;
strokeColor?: string;
strokeDashArray?: number;
strokeLineCap?: 'butt' | 'square' | 'round'
}[];
barHeightOffset?: number;
columnWidthOffset?: number;
}[]
| [number, number | null][]
| [number, (number | null)[]][]
| number[][];
}[]

type ApexNonAxisChartSeries = number[]
Expand Down Expand Up @@ -928,7 +928,7 @@ type ApexDataLabels = {
dropShadow?: ApexDropShadow
}
dropShadow?: ApexDropShadow
formatter?(val: string | number | number[], opts?: any): string | number | string[]
formatter?(val: string | number | number[], opts?: any): string | number | (string | string)[]
}

type ApexResponsive = {
Expand Down Expand Up @@ -1021,7 +1021,7 @@ type ApexXAxis = {
offsetX?: number
offsetY?: number
format?: string
formatter?(value: string, timestamp?: number, opts?:any): string | string[]
formatter?(value: string, timestamp?: number, opts?: any): string | string[]
datetimeUTC?: boolean
datetimeFormatter?: {
year?: string
Expand All @@ -1033,14 +1033,14 @@ type ApexXAxis = {
}
}
group?: {
groups?: { title: string, cols: number }[],
style?: {
colors?: string | string[]
fontSize?: string
fontFamily?: string
fontWeight?: string | number
cssClass?: string
}
groups?: { title: string, cols: number }[],
style?: {
colors?: string | string[]
fontSize?: string
fontFamily?: string
fontWeight?: string | number
cssClass?: string
}
}
axisBorder?: {
show?: boolean
Expand Down