如何使用对象数组作为系列数据使用Highchart Library创建多个系列时间线图

时间:2015-03-11 16:49:44

标签: javascript json highcharts

通过Ajax调用从数据库获取数据。数据采用此格式。来自

[ 
{orderdate:'2014-06-02',empname:'Bilal',NetSales:'0.0000'}, 
{orderdate:'2014-06-05',empname:'Admin',NetSales:'2459072.0000'}, 
{orderdate:'2014-06-05',empname:'Bilal',NetSales:'10368.0000'}, 
{orderdate:'2014-06-06',empname:'Bilal',NetSales:'229864.0000'}, 
{orderdate:'2014-06-07',empname:'Bilal',NetSales:'246427.5000'}, 
{orderdate:'2014-06-09',empname:'Kashif',NetSales:'11200.0000'}, 
{orderdate:'2014-06-09',empname:'Bilal',NetSales:'355915.0000'}, 
{orderdate:'2014-06-10',empname:'Kashif',NetSales:'22000.0000'}, 
{orderdate:'2014-06-10',empname:'Bilal',NetSales:'685350.0000'}, 
{orderdate:'2014-06-11',empname:'Bilal',NetSales:'848331.0000'}  
]

我想要使用Highchart Library的时间线图表。在y轴上对Xaxis和netSales进行Orderdate。每个员工一个情节系列。就像JS小提琴上的样条不规则时间图一样。 http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/spline-irregular-time/

0 个答案:

没有答案