nubedir
Posts: 5
Joined: Sat Aug 21, 2021 12:09 am

Correct ticks not showing up for subset of data

Hi,

I have a situation where the correct ticks are showing up for my data but not when I use a subset of it. I'm attaching both the jsfiddle and images here
1. https://jsfiddle.net/j4cLezs5 : If you use the navigator to zoom in, the ticks come up for months, weeks and even dates.
header shows dates as expected on zoom
header shows dates as expected on zoom
correct.png (28.59 KiB) Viewed 1231 times
2. https://jsfiddle.net/87a6br4q/ : While using the navigator, the ticks only show months and do not display weeks and dates.
header does not go beyond months
header does not go beyond months
incorrect.png (22.25 KiB) Viewed 1231 times
The only difference in both the jsfiddle examples is that the last row of data is commented out in the one which is not working properly (id: 2 and name: Test4). This means that the functionality seems to be working fine with some data but not with its subset.

Could you please help me figure out why it is happening and how to solve it?

Thanks!
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Correct ticks not showing up for subset of data

Hi,
Thanks for contacting us with your question!

Something it's with your data, I tried to recreate and I used other date and don't see any problem.

Live demo:
https://jsfiddle.net/BlackLabel/oyd1mjt3/

Bet regards.
Sebastian Hajdus
Highcharts Developer
nubedir
Posts: 5
Joined: Sat Aug 21, 2021 12:09 am

Re: Correct ticks not showing up for subset of data

Thanks for getting back. I spent a while trying to figure out why the data I was using was causing this because it's working fine with another data set. But my original data seems to be the same format as any other data I use. That's why I am out of ideas on what could be causing this and how to fix this.

The weird thing is that this issue comes up if I comment an item from my data. I would imagine that if I am adding some new data and that is causing an error, then it is a problem with the new data. But if I am commenting an item from data array which was already present without issue and then seeing this issue, then how could it be a data issue :|
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Correct ticks not showing up for subset of data

Hi,

I can't point exactly what the error is.
But when I do tests with other data the problem doesn't appear.

Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Gantt”