-
-
Couldn't load subscription status.
- Fork 1.4k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
Codepen
https://codepen.io/GrSto/pen/MWJGbGR
Explanation
For the dataLabels.formatter option, the expected type for the val parameter in types/apexcharts.d.ts is number:
apexcharts.js/types/apexcharts.d.ts
Line 842 in 8edb42b
| formatter?(val: number, opts?: any): string | number |
However, for RangeBar Charts (with chart.type = "rangeBar"), the type should be for example [number, number].
This causes the following Typescript error:
TS2322: Type '(val: [number, number]) => string' is not assignable to type '(val: number, opts?: any) => string | number'.
Types of parameters 'val' and 'val' are incompatible.
Type 'number' is not assignable to type '[number, number]'.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working