How to customize xAxis for months #2935
Unanswered
MarioUnlam
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to customize exactly what values I want to show in xAxis? I need to make a line/area chart where the xAxis is time, and the yAxis is money. None of the current options work well for me. I need the xAxis to display the month names like "Oct", "Nov", etc, at the first day of the month. Or at least display an approximate start of the month. I tried this:
And it displays the month names, but it has some problems:
I could try specifying the tickAmount and use a formatter, to get an approximate start of every month. However, for this to work properly, I need the chart to start and end at the first day of a month, so I either have to crop my data, or display empty space on both sides of the chart. This is not practical.
Is there any way to achieve what I need?
Beta Was this translation helpful? Give feedback.
All reactions