Reputation: 141
When I load all my data into a chart the xaxis gets cluttered and unreadable. I have maybe 120 records per hour that with a certain value. Is there a way in highcharts to load all the data I have and have the xaxis showing the values per hour? As pictured below:
https://i.sstatic.net/AIAT3.png
Upvotes: 0
Views: 189
Reputation: 166
Have you tried http://api.highcharts.com/highcharts#plotOptions.line.pointInterval? I would assume setting pointInterval to 3600*1000 = 1 h would achieve what you want? By default this value is 1, hence the cluttering.
plotOptions: {
series: {
pointInterval: 3600 * 1000 // 1 h
}
},
Also check this fiddle; samples/highcharts/plotoptions/series-pointstart-datetime/
Upvotes: 1