-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Allow blank axis labels #15
Comments
Hello, Here's an alternate way to achieve this.
You can view the result in this code pen: https://codepen.io/jsblog/pen/GRzyvNd Please let me know if this does not work for your situation. |
That's helpful, thank you! Does this method also prioritise showing text labels over blank labels when the Chart is squished? |
Interesting idea. Unfortunately the labeling system does not differentiate priority based on the label text content at this time but we may add this in the future. |
Ok, thanks for the info and for considering the idea! |
The Context
We have a Chart with the following setup below.
It has empty spaces for the labels where "February" and "July" would've been.
The Problem
The Chart doesn't account well for these empty spaces because the last data point is pulled back to where February would've been because it treats the empty space labels as the same data point.
Setting the label to
false
ornull
doesn't fix this.Adding an extra space so the last data point's label becomes two spaces
' '
is an unideal solution because, when the Chart is squished, it'll overwrite other labels that actually have text - labels that have text should always be preferred over blank labels.The Feature Request
Why would we want this feature?
Charts with lots of data points can become confusing to look at. Allowing for data points with
y=0
to have blank labels would add clarity.Please let me know if you need any more information.
Thank you for your time.
The text was updated successfully, but these errors were encountered: