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
Occasionally it is useful to att a string label to explain numerical tick values on an axis while still using the numerical value for calculating an average, e.g. in ratings or survey responses. I couldn't find an example of this in the docs, and only after much tinkering I was able to use labelExpr and tickCounts to figure out a way to do this. I am not sure if this is the most convenient way and maybe I missed a more convenient approach. One thing I have not been able to figure out is how to set an exact number of ticks instead of it being rounded to a nice value, but would you consider adding an example similar to this in the docs (I can PR if desired)?
Check for duplicate issues. Please file separate requests as separate issues on GitHub.
Describe the feature's goal, motivating use cases, and its expected behavior.
If you are proposing a new syntax, please provide at least one example spec, wrapped by triple backticks like this:
If applicable, include screenshots, GIF videos (e.g. using https://www.cockos.com/licecap/), or working example (e.g. example Vega specification for the requested feature)
The text was updated successfully, but these errors were encountered:
Occasionally it is useful to att a string label to explain numerical tick values on an axis while still using the numerical value for calculating an average, e.g. in ratings or survey responses. I couldn't find an example of this in the docs, and only after much tinkering I was able to use
labelExpr
andtickCounts
to figure out a way to do this. I am not sure if this is the most convenient way and maybe I missed a more convenient approach. One thing I have not been able to figure out is how to set an exact number of ticks instead of it being rounded to a nice value, but would you consider adding an example similar to this in the docs (I can PR if desired)?Open the Chart in the Vega Editor
The text was updated successfully, but these errors were encountered: