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
It is recommended to use a NumericAccessor with a StringAcessor in the tickFormat to get an ordinal scale.
However the documentation show that the following code snippet should work:
A problem with that snippet is, the tick can be a float and thus the code will throw an error as it cannot index the array with a float.
The fix I implemented is using Number.isInteger as so:
In the documentation about ordinal values: https://unovis.dev/docs/guides/tips-and-tricks/#displaying-ordinal-values
It is recommended to use a NumericAccessor with a StringAcessor in the
tickFormat
to get an ordinal scale.However the documentation show that the following code snippet should work:
A problem with that snippet is, the tick can be a float and thus the code will throw an error as it cannot index the array with a float.
The fix I implemented is using
Number.isInteger
as so:Versions:
The text was updated successfully, but these errors were encountered: