Skip to content
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

Custom offsets for x axis labels. #40

Open
jeppester opened this issue Dec 21, 2021 · 0 comments
Open

Custom offsets for x axis labels. #40

jeppester opened this issue Dec 21, 2021 · 0 comments

Comments

@jeppester
Copy link

I'm am building a chart where x is the time, and y is a score.

|                  ______________
|  _______        /              \
| /       \______/                \_____
|/                                
|_______________________________________
     |           |         |          |
    Jan         Feb       Mar        Apr

I want to have a label on the x axis for the beginning of each month.

Is there a way to specify a specific x-coordinate for each label on the x axis?
I'm aware that if there are an equal amount of data point and labels, then they should align, but in our case there will be many more data points than labels, so as I understand the documentation, the labels we specify will be evenly distributed.

Since months are not equally long, having equally distributed x-markers is not suitable for our usecase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant