如何从数据库构建记录以在Highchart中使用

时间:2015-08-08 05:32:03

标签: c# asp.net highcharts

我正在尝试在Highchart上绘制多个系列。记录从数据库中获取,如下所示:

enter image description here

如何将数据构建为所需的格式,如下所示:

    {
        name: 'ACCESS',
        data: [recievedon, referenceprice], [recievedon, referenceprice], [recievedon, referenceprice]
    }, 
    {
        name: 'AFRIPRUD',
        data: [recievedon, referenceprice], [recievedon, referenceprice], [recievedon, referenceprice]
    }, 
    {
        name: 'ETI',
        data: [recievedon, referenceprice], [recievedon, referenceprice], [recievedon, referenceprice]
    }

0 个答案:

没有答案