You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you pass the tooltip prop to <Chart> this will wrap the <slot> in a <TooltipContext> which we then use to pass the current value of $tooltip as a slot prop. This is used in a lot of cases including this Area example as well as when in manual mode, such as for Geo, Pie, etc.
ex.
<Charttooltiplet:tooltip>
...
</Chart>
Typescript appears to not be able to infer this and throws an error, so we need to find a way to explicitly define this.
The text was updated successfully, but these errors were encountered:
techniq
changed the title
[Chart]tooltip slot prop type error
[Chart] tooltip slot prop type error
Jan 11, 2024
Currently if you pass the
tooltip
prop to<Chart>
this will wrap the<slot>
in a<TooltipContext>
which we then use to pass the current value of$tooltip
as a slot prop. This is used in a lot of cases including this Area example as well as when in manual mode, such as for Geo, Pie, etc.ex.
Typescript appears to not be able to infer this and throws an error, so we need to find a way to explicitly define this.
The text was updated successfully, but these errors were encountered: