-
-
Couldn't load subscription status.
- Fork 1.4k
Closed
Description
I'm using Typescript and a chart of type heatmap.
On the configuration object, based on the documentation & types I have:
const options: ApexOptions = {
chart : { ... },
tooltip: {
y: {
title: {
formatter: (seriesName: string): string => {
// Do stuff
},
}
}
};But actually, formatter accept 2 more arguments.
So it could be nice to reflect it on the types and/or docs.
Something like this:
formatter: (seriesName: string, opts: { series: number[][]; seriesIndex: number; dataPointIndex: number }, w: any): stringI haven't open a PR because I don't find the perfect type for series and for w.
Here is the line to update on the types file.
You can see that the second and third arguments are passed on this file everytime that the function yLbTitleFormatter is called.
If you know the correct type for series and w, I can open a PR.
Metadata
Metadata
Assignees
Labels
No labels