Highstock / Highcharts Timestamp Values

What are the average values ​​for high / starting values?

For example, one of the values: [1147651200000,67.79], when I used http://www.onlineconversion.com/unix_time.htm to convert 1147651200000, its Sun, Aug 15. 38337 00:00:00 GMT

Year seems a bit off

I have the following code from an example in highstock

$.getJSON('http://www.highcharts.com/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 } }] }); }); 

Source for reading from http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback= ?

What does the first variable in the array mean? This does not seem to be a timestamp.

+4
source share
1 answer

Time parameters are expressed in milliseconds. Unix time is seconds, so try dividing by 1000 and try again.

+7
source

Source: https://habr.com/ru/post/1494223/


All Articles