Skip to content

Updated way to override the y-axis range and space out the x-axis labels to avoid ellipsis on alpha.5 using the VIEW system? #516

Closed Answered by patrickmichalik
JoshLudahl asked this question in Questions
Discussion options

You must be logged in to vote

Hello!

  1. I’m glad you’ve found a solution. AxisValueOverriders should be applied before setModel is called because they’re used on data updates. In older Vico versions, a ChartValues update occurred each time a chart was drawn. Now, for better performance, there’s just one ChartValues update per data update.
  2. The distance between HorizontalAxis labels depends on HorizontalDimensions#xSpacing. Unfortunately, there’s currently no feature that automatically adapts HorizontalDimensions#xSpacing to the widths of a chart’s HorizontalAxis labels. We’re looking into adding such functionality, along with a feature that automatically reduces the label count to prevent truncation. I’ll let you know wh…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@JoshLudahl
Comment options

@patrickmichalik
Comment options

Answer selected by JoshLudahl
Comment options

You must be logged in to vote
1 reply
@patrickmichalik
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants