Highcharts time chart, highcharts
This article is suitable for yuanyou who already know about highcharts.
Two days ago, I wanted to use highcharts for a time chart, but the time coordinates of the time axis (X axis) were not equal intervals. Previously, I used the method to make the time equal intervals, then, the time point data with no data is filled with null. this is obviously not a good strategy. LZ wants to fundamentally solve this problem and let highcharts handle the time on its own. The idea is of course to use the mechanism of highcharts itself. (Version: Highcharts-4.2.6 ).
Refer to the highcharts api. The type attribute in the xAxis section can be set to datetime. Click to view the example of datetime with irregular intervals:
LZ sorts out a scatter chart based on local time according to this example:
<! DOCTYPE html>
:
I wrote a blog for the first time in my life. I don't know if you can understand it.