Is there any sort of transform datapoint hook? #11086
BlairCurrey
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking for a away to transform each value when chart.js accesses it internally. This is to avoid doing an extra for-loop over the data (which might be very large). This is kinda what I imagined but I don't see anything like this:
Note my own "accessor" property. From one of the examples here https://www.chartjs.org/docs/latest/general/data-structures.html. This would add 1 to each value in the dataset at the time it's accessed in chart.js.
Beta Was this translation helpful? Give feedback.
All reactions