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
After the new chart type is registered in ChartTypeRegistry some of the properties declared do not exist when we try to access them. How could we extend the chartjs types by adding custom properties?
As you can see, i also defined a custom property "isCursor" at my configuration and in the re-declaration at chartjs.d.ts, but ChartJS says it is not defined for cases outside of the ChartConfiguration type.
Expected behavior
Following the documentation on how to type new charts (https://www.chartjs.org/docs/latest/developers/charts.html#typescript-typings), once the new chart is registered in ChartTypeRegistry, the properties registered for that chart type should be accessible.
Current behavior
After the new chart type is registered in ChartTypeRegistry some of the properties declared do not exist when we try to access them. How could we extend the chartjs types by adding custom properties?
Reproducible sample
https://codesandbox.io/s/clever-gagarin-05wchy?file=/src/chartjs.d.ts
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
4.1.2
Browser name and version
No response
Link to your project
No response
The text was updated successfully, but these errors were encountered: