Replies: 2 comments
-
You can just access it by calling it like so: chartVariable.options.scales[scaleId][customVariable] Although if you set a custom property on the scale you already have access to it so you can also just read that again |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hmm.. Maybe I asked incorrect question.
I need to read the property somewhere in CustomScale methods, but the only way to do which I found is to use property 'beforeDataLimits' in scale options like this:
This way it works. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to read custom property from scale instance at run time. Is it possible? How to implement?
It seems if I set property in
chart.options.scales[id]
it doesn't exist in options onScale.init
.Beta Was this translation helpful? Give feedback.
All reactions