jsf 2 - Stacked Bar Chart with Line Chart not working -
i need create bar stacked combination chart line
see example:
multiaxismodel = new linechartmodel(); multiaxismodel.setstacked(true); barchartseries boys = new barchartseries(); boys.setlabel("boys"); boys.set("2004", 120); boys.set("2005", 100); boys.set("2006", 44); barchartseries boys1 = new barchartseries(); boys1.setlabel("boys1"); boys1.set("2004", 20); boys1.set("2005", 10); boys1.set("2006", 44); linechartseries girls = new linechartseries(); girls.setlabel("girls"); girls.setxaxis(axistype.x2); girls.setyaxis(axistype.y2); girls.set("a", 52); girls.set("b", 60); girls.set("c", 110); multiaxismodel.addseries(boys); multiaxismodel.addseries(boys1); multiaxismodel.addseries(girls); multiaxismodel.settitle("multi axis chart"); multiaxismodel.setmouseoverhighlight(false); multiaxismodel.getaxes().put(axistype.x, new categoryaxis("years")); multiaxismodel.getaxes().put(axistype.x2, new categoryaxis("period")); axis yaxis = multiaxismodel.getaxis(axistype.y); yaxis.setlabel("birth"); yaxis.setmin(0); yaxis.setmax(200); axis y2axis = new linearaxis("number"); y2axis.setmin(0); y2axis.setmax(200); multiaxismodel.getaxes().put(axistype.y2, y2axis);
i try few options line diagram not overlapping on line according y axis.
this working multiaxismodel.setstacked(false);
any idea why ?
thanks
Comments
Post a Comment