How to load data from JSON to Highchart?

后端 未结 4 2247
-上瘾入骨i
-上瘾入骨i 2021-01-15 07:09

my Json looks like this:

[{\"1332879360000.0\": 300.0, \"1332797760000.0\": 353.0,

\"1332799320000.0\": 358.0, \"1332         


        
4条回答
  •  说谎
    说谎 (楼主)
    2021-01-15 07:22

    I am not sure to have understood your question.... so if I misunderstood, please correct me.

    You can just copy your json data in a file which name is example.json and then in your ajax request make the following:

    function requestData() {
        $.ajax({
            url: './example.json',  // depending which directory you save your file
            // the other code
      });
    };
    

提交回复
热议问题