javascript - About highchart data rendering
習慣沉默
習慣沉默 2017-06-26 10:53:06
0
1
762

image description

The above chart adds data dynamically. The variable xdata in the code is a time, and the format is 17:21:11. It can be printed out, and the y-axis can also be printed normally. But now the Y-axis data can be rendered normally, but the x-axis cannot be displayed. The expected effect should be to display the time, but now the accumulated numbers starting from 1 are displayed.

習慣沉默
習慣沉默

reply all (1)
洪涛

You first try setting the type of xAxis tocategory;

in the options passed to the highcharts constructor
{ ... xAxis: { ..., type:"category" }, ... }

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!