解释:Highstock在Highcharts股票中显示170万个数据点。

时间:2021-04-24 13:08:05

Hello everyone i'm a beginner in highstock i want to work with this to convert my data to graph then i find some problem in this example of Lazy Loading i have much question :
need to change this highstock to my data just use a simple data like this :

大家好我是一个初学者在highstock我想使用这把我的数据图然后我发现一些问题延迟加载在本例中,我有很多的问题:需要改变这highstock我的数据只使用一个简单的数据是这样的:

[883612800000,3.41,5.01,3.37,4.58],
[886291200000,4.62,5.97,4.34,5.91],
[888710400000,5.89,7.01,5.40,6.88],
[891388800000,6.87,7.41,6.17,6.85],
[893980800000,6.88,7.91,6.42,6.68],
[896659200000,6.61,7.24,6.39,7.16],
[899251200000,7.22,9.54,7.12,8.67],
[901929600000,8.56,10.92,7.75,7.80],
[904608000000,7.84,10.05,7.65,9.52],
[907200000000,9.19,10.33,7.12,9.28],
[909878400000,9.39,9.85,7.94,7.99],
[912470400000,8.00,10.37,7.90,10.23],
[915148800000,10.53,11.82,9.27,10.29],
[917827200000,10.42,10.48,8.63,8.71]`

then in the same example i want a method how to removed the zoom and the scroll in the bottom and in last need to sample exampling about this function

在相同的例子中,我想要一个方法,如何去掉底部的缩放和滚动,最后需要对这个函数进行抽样检查。

function afterSetExtremes(e) {

    var chart = $('#container').highcharts();

    chart.showLoading('Loading data from server...');
    $.getJSON('http://www.highcharts.com/samples/data/from-sql.php?start=' + Math.round(e.min) +
            '&end=' + Math.round(e.max) + '&callback=?', function (data) {

            chart.series[0].setData(data);
            chart.hideLoading();
        });
}

** in the end thanks for all and sorry for my bad english any confused ask in commentaire **

最后,感谢所有人,为我糟糕的英语感到抱歉。

1 个解决方案

#1


0  

You cannot load form filesystem (security reasons in browsers) so you need to have a webserver. Please check our article how to load data and process

您不能加载表单文件系统(在浏览器中是安全原因),所以您需要有一个webserver。请检查我们的文章如何加载数据和过程。

#1


0  

You cannot load form filesystem (security reasons in browsers) so you need to have a webserver. Please check our article how to load data and process

您不能加载表单文件系统(在浏览器中是安全原因),所以您需要有一个webserver。请检查我们的文章如何加载数据和过程。