Replies: 1 comment 3 replies
-
This feature already exist as a variable, check the labels alignment docs. Also, see Charts.css cheatsheet with all the available variables. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In charts.css, the line in line chart is consisted of many segments. Each segment has its own
start
and end (denoted bysize
in charts.css). Their labels are currently displayed aligning to the center of each segment.I assume many (if not the most) of the line charts are meant to emphasize the data as points, rather than the segment connecting those points. So, can we provide an option to right-align the labels to the right-hand side of each segment?
The developer could write their own css to customize the label alignment, but it seems not as straightforward as one might think. A global
.line th {align-items: end}
somehow does not work.PS: Being the maintainer of the Python binding Charts.css.py, I could generate that
align-items:end
as inline style for each<th>
tag, but I figure it would be better if the upstream charts.css can provide a toggle class to enable this behavior out of the box.Beta Was this translation helpful? Give feedback.
All reactions