Axes labels should be able to clip, rather than require padding #1003
Tyler-Lopez
started this conversation in
Ideas
Replies: 1 comment
-
This is also only a problem in Vico with the x-axis, the y-axis can correctly "clip into" the x-axis. For example, if I put a 0 on the y-axis, that would look just fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have found the design of the axes labels a little frustrating.
Axes labels require a certain amount of space. If they don't have this space, they will always collapse into "..." (separately, I would love to not have them collapse into that, or customize what they collapse into, but this is a separate concern).
There is a clunky-feeling boolean that exists to ensure labels at the start or end have sufficient padding, but this changes the entire chart domain - pushing the y-axes out to the left and the right. We should simply be able to have the label clip. This is a feature of other chart libraries, like Swift Charts. The x-axis can bleed into the y-axis.
In the following example, notice what happens as I attempt to add a label at the first data point.
Is there any way around this I am missing that is already in the library, and if not - I would love to see this added.
Beta Was this translation helpful? Give feedback.
All reactions