我想知道如何定义数据来创建Highstock图。
这是jsfiddle:http://jsfiddle.net/gh/get/jquery/1.6/highslide-software/highcharts.com/tree/master/samples/stock/demo/compare/
如何定义数据为4、5、6和起点?
发布于 2011-12-19 15:58:12
您链接的示例中的数据被定义为包含[<timestamp>, <value>]的数组(在此example中内联):
[[1103500800000,185.02],
[1103587200000,183.75],
[1103673600000,186.30],
[1103760000000,187.90],
[1104105600000,191.91],
[1104192000000,192.76],
...]但是您也可以使用pointStart和pointInterval来指定数据,但只有当所有数据点彼此之间的距离相等(example)时,这才会起作用。
pointStart: 1103500800000,
pointInterval: 1000 * 3600 * 24,
data: [185.02,
183.75,
186.30,
187.90,
191.91,
...]https://stackoverflow.com/questions/8440735
复制相似问题