Highcharts time chart, highcharts

Source: Internet
Author: User

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.

  

  

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.