admin管理员组文章数量:1389820
What is the values in a highcharts / highstock time mean ?
For example one of the values are [1147651200000,67.79], when I used .htm to convert 1147651200000, its Sun, 15 Aug 38337 00:00:00 GMT
The year seems a bit off
I've the following code from the sample at highstock
$.getJSON('.php?filename=aapl-c.json&callback=?', function(info) {
data = info;
$('#container').highcharts('StockChart', {
rangeSelector : {
selected : 1
},
title : {
text : 'Title'
},
series : [{
name : 'Name',
data : data,
marker : {
enabled : true,
radius : 3
},
shadow : true,
tooltip : {
valueDecimals : 2
}
}]
});
});
It's reading source from .php?filename=aapl-c.json&callback=?
What does the first variable in the array mean? It doesn't seem to be timestamp.
What is the values in a highcharts / highstock time mean ?
For example one of the values are [1147651200000,67.79], when I used http://www.onlineconversion./unix_time.htm to convert 1147651200000, its Sun, 15 Aug 38337 00:00:00 GMT
The year seems a bit off
I've the following code from the sample at highstock
$.getJSON('http://www.highcharts./samples/data/jsonp.php?filename=aapl-c.json&callback=?', function(info) {
data = info;
$('#container').highcharts('StockChart', {
rangeSelector : {
selected : 1
},
title : {
text : 'Title'
},
series : [{
name : 'Name',
data : data,
marker : {
enabled : true,
radius : 3
},
shadow : true,
tooltip : {
valueDecimals : 2
}
}]
});
});
It's reading source from http://www.highcharts./samples/data/jsonp.php?filename=aapl-c.json&callback=?
What does the first variable in the array mean? It doesn't seem to be timestamp.
Share Improve this question edited Jul 30, 2013 at 11:31 SteveP 19.1k9 gold badges48 silver badges62 bronze badges asked Jul 30, 2013 at 8:11 Steve NgSteve Ng 1,1891 gold badge13 silver badges35 bronze badges1 Answer
Reset to default 7The time parameters are expressed in milliseconds. Unix times are seconds, so try dividing by 1000 and try the conversion again.
本文标签: javascriptHighstockHighcharts timestamp valuesStack Overflow
版权声明:本文标题:javascript - HighstockHighcharts timestamp values - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744739601a2622530.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论