f5 / unovis

Modular data visualization framework for React, Angular, Svelte, Vue, and vanilla TypeScript or JavaScript
https://unovis.dev
Apache License 2.0
2.25k stars 43 forks source link

Equal y-axis text width #478

Open gilbertsmink opened 2 days ago

gilbertsmink commented 2 days ago

Hi!

How would I achieve equal text width of the y-axis. As seen in the screenshot the top graph text is wider than the bottom graph.

I have tried to play with 'tickTextWidth', but it does not seem to do anything for the y-axis.

Any ideas?

Screenshot 2024-10-30 at 16 20 20

gilbertsmink commented 2 days ago

Ok found how to do this. Set auto-margin to false en define the margin yourself :)

gilbertsmink commented 2 days ago

Is it possible to decrease the spacing between tick and y-axis?

lee00678 commented 2 days ago

Is it possible to decrease the spacing between tick and y-axis?

Hi @gilbertsmink , try tickPadding, see here