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
-
Hello again! I have two questions.
I'm trying to use a values overrider that I created here:
I tried variations of CartesianLayer, CartesianLayerModel, etc, and they don't seem compatible or values aren't reflected in the chart, but maybe I am missing a vital piece here. I also get a type eraser error:
Full function for reference:
Attaching a screenshot of the ellipsis issue: And thanks again for all of the help the last week or so! Edit: I was able to override the y-axis for question 1, I just had to move the Final code for that is now:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello!
|
Beta Was this translation helpful? Give feedback.
-
Thank you. I thought I tried to increase the spacing that way but the
ellipses remained, but were further apart. I tried a combination, but it
didn't seem to work as intended.
…On Fri, Jan 12, 2024, 12:42 AM Patrick Michalik ***@***.***> wrote:
You’re welcome! There’s an XML attribute for this too. It’s called spacing
and goes in the same place where line1Spec through line3Spec.
—
Reply to this email directly, view it on GitHub
<#516 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGMW7WPKJ76HNQF2D3PX5DYODZOZAVCNFSM6AAAAABBL76KT6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCMBXGA2TE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hello!
AxisValueOverrider
s should be applied beforesetModel
is called because they’re used on data updates. In older Vico versions, aChartValues
update occurred each time a chart was drawn. Now, for better performance, there’s just oneChartValues
update per data update.HorizontalAxis
labels depends onHorizontalDimensions#xSpacing
. Unfortunately, there’s currently no feature that automatically adaptsHorizontalDimensions#xSpacing
to the widths of a chart’sHorizontalAxis
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…