9
votes

I'd like to make it so that only dates, not times, are displayed as labels on my Highcharts chart. How can I do that?

Image

Here's an example jsFiddle.

2
Please post the relevant parts of your code & markup inline in your question.Mat
Could you describe your problem inside the question, please? I took some time loading the image and figuring out what the difference was 😊user1675187
sorry, i'm not good in english.here, how to remove the labels in red. i.imgur.com/NQhBm.pngCople

2 Answers

17
votes

you should set the xAxis.minTickInterval

xAxis: {
        minTickInterval: 24 * 3600 * 1000
}

jsFiddle 1
jsFiddle 2

I highly encourage going through the vast and useful highcharts api reference before posting questions