6 つのデータ シリーズで満たされたマトリックスがあり、最初の 5 つに同じ名前の「プロセス a」(同じ色を付けます) を付け、左側の 1 つに「プロセス b」のラベルを付けます。jqplotでこれを行う方法はありますか? 提案をありがとう。
コードとデモは次のとおりです。
$(document).ready(function(){
$.jqplot.config.enablePlugins = true;
s1 = [[10.0, 11.0, 11.0, 12.0, 12.0, 14.0], [10.0, 11.0, 12.0, 12.0, 12.0, 12.0], [10.0, 13.0, 14.0, 15.0, 15.0, 16.0], [10.0, 10.0, 11.0, 11.0, 11.0, 12.0], [10.0, 10.0, 11.0, 12.0, 12.0, 12.0]];
s2 = [10.0, 10.4, 10.816, 11.248640000000002, 11.698585600000003, 12.166529024000004];
s1.push(s2);
$.jqplot('chart1', s1, {
seriesDefaults: {
showMarker:false,
pointLabels: { show:false } ,
},
series:[
{label:'Process A'},{label:'Process B'}
],
legend: {
show: true,
location: 'nw',
placement: 'inside',
fontSize: '11px'
}
})
})