0
一個例子可能描述了我想要最容易實現的內容。jqPlot:重疊條形圖可能嗎?
例如,如果我有[80,70]和[90,90]系列,我希望第一個堆疊條具有第一個系列的顏色從0到80,然後是其他系列'顏色從80-90。現在我把它們放在一起,結果產生了170單位高的酒吧。
的JavaScript代碼:
plot3 = $.jqplot('chartdiv', [normalSeries, distSeries], {
stackSeries: true,
captureRightClick: true,
seriesDefaults: {
renderer: $.jqplot.BarRenderer,
rendererOptions: {
barMargin: 20,
barWidth: 10,
highlightMouseDown: true
},
pointLabels: { show: true }
},
axes: {
xaxis: {
renderer: $.jqplot.CategoryAxisRenderer,
ticks: schoolNames
},
yaxis: {
padMin: 0
}
},
legend: {
show: true,
location: 'e',
placement: 'outside'
}
});
提前感謝!
是解決這個問題寫了BarRenderer.js的「叉」的唯一途徑?是否有另一種繪圖工具可以實現這一點? – SamiHuutoniemi 2013-05-02 07:47:43