fredrezare
Posts: 1
Joined: Tue Aug 16, 2022 3:30 pm

Data is weekly but display x-axis labels as months

We want to show a graph where the x-axis categories are in months but the data is weekly. Here's an example graph that we generated:

Image
https://ibb.co/tXVJfM1

Notice that each month has several columns. These columns represent weekly data. Also notice that "Jan" is repeated, and that's what we want to fix.

The reason this happens is because we are using "tickInterval: 4", but in our selected year, January has 5 months, and the rest of the months have 4 weeks each. Is there a way to address this issue?
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Data is weekly but display x-axis labels as months

Hi there,

Welcome to our forum and thank you for contacting us with you question!

Could you please recreate your code with the same data that you use, in an online editor i.e JSFiddle? That would allow us to take a look at the bigger picture, and create a solution specifically for your use case.

Thank you in advance,
Regards!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Usage”