下面是示例代碼...Dimple.js多系列吧不能堆疊
var svg = dimple.newSvg("#chartContainer", 600, 400),
chart = null,
s1 = null,
s2 = null,
x = null,
y1 = null,
y2 = null,
data = [
{ "ID" : "1", "Value 1" : 100000, "Value 2" : 110000 },
{ "ID" : "2", "Value 1" : 90000, "Value 2" : 145000 },
{ "ID" : "3", "Value 1" : 140000, "Value 2" : 60000 }
];
chart = new dimple.chart(svg, data);
x = chart.addCategoryAxis("x", "ID");
y1 = chart.addMeasureAxis("y", "Value 1");
y2 = chart.addMeasureAxis("y", "Value 2");
s1 = chart.addSeries(null, dimple.plot.bar, [x, y1]);
s2 = chart.addSeries(null, dimple.plot.bar, [x, y2]);
chart.draw();
當我運行,該系列產品堆疊起來,基本上我需要顯示爲便於比較該系列另外一個身邊.. ..
我很新的這一點,並感謝所有幫助...
註冊 維克拉姆
謝謝約翰...我會嘗試 – user3820536
嗨,約翰,基本上我在尋找比較兩個參數並排。例如,在一年中,我需要每個月以並列方式顯示每個月的銷售額與購買價值。 – user3820536