我想实现插件图表插入我的代码,图表的代码是这样转换一个维数组二维数组
chart = new Highcharts.Chart({
},
series: [{
type: 'pie',
name: 'criterin',
data: [
['Firefox', 45.0],
['IE', 26.8],
{
name: 'Chrome',
y: 12.8,
sliced: true,
selected: true
},
['Safari', 8.5],
['Opera', 6.2],
['Others', 0.7]
]
}]
});
我有数组,我从阿贾克斯功能得到了它包含了我想要的信息替换到图表中。
例如,我提醒样品阵列,并导致类似:
post work,0.64,quality,0.35
我如何用我的阵列与图表代码集成。
我建议你在后端格式,并避免客户端的过程。 –