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
Per the docs here you can use the Chart class's helpers member to perform helper function type things.
However, Chart.helpers doesn't exist when I run an npm install.
When I use the codepen link, Chart.helpers does exist. I'm not sure what the discrepancy is between
https://npmcdn.com/chart.js@latest/dist/chart.min.js and the npm version chart.js@latest but something is off.
Package.json has it listed at 3.8.0.
I copied/pasted the example code and it still wont work.
For what its worth, I am using this with ng2-charts, however a direct class import should still show the full implementation.
Curious if I'm doing something wrong.
@LeeLenaleee This will likely fix my issue -- however the docs are, then, out of sync. As referenced there is documentation that says to use Chart.helpers... - this seems like a documentation issue. Thanks for the help.
Expected behavior
Per the docs here you can use the Chart class's
helpers
member to perform helper function type things.However, Chart.helpers doesn't exist when I run an npm install.
When I use the codepen link, Chart.helpers does exist. I'm not sure what the discrepancy is between
https://npmcdn.com/chart.js@latest/dist/chart.min.js
and the npm versionchart.js@latest
but something is off.Package.json has it listed at 3.8.0.
I copied/pasted the example code and it still wont work.
For what its worth, I am using this with ng2-charts, however a direct class import should still show the full implementation.
Curious if I'm doing something wrong.
Current behavior
Chart.helpers doesn't exist.
Reproducible sample
https://codepen.io/pen?template=BapRepQ
Optional extra steps/info to reproduce
Full source from the node_modules v3.8.0 package for the Chart class after pulling it locally:
As you can see there is no
helpers
member on this class.Possible solution
No response
Context
No response
chart.js version
3.8.0
Browser name and version
N/A (issue occurs in code)
Link to your project
No response
The text was updated successfully, but these errors were encountered: