我正在尝试在Highchart上绘制多个系列。记录从数据库中获取,如下所示:
如何将数据构建为所需的格式,如下所示:
{
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]
}