目前我正在创建3个Json字符串并在运行时添加该系列。
series: [ {
name: userID,
showInLegend: true,
color: '#6699cc',
data: <%= chartData%>
},
{
name: 'High Alarm Value',
showInLegend: true,
color: '#FF0000',
data: <%= chartDataMax%>
},
{
name: 'Low Alarm Value',
showInLegend: true,
color: '#0000FF',
data: <%= chartDataMin%>
}
]
并加载它们,如您所见。我想创建一个包含n个系列的Json字符串数组,并将它们添加到图形中。