Page 1 of 1

Stacked Bar Chart Example

Posted: Fri Sep 14, 2012 9:35 pm
by 17060769
Hi,

Does anyone have a snippet of code for the creation of a stacked bar chart?

thx.

Re: Stacked Bar Chart Example

Posted: Mon Sep 17, 2012 8:23 am
by yeray
Hi,

Have you tried using the setMultiBar(MultiBars.STACKED) function?

Code: Select all

		Bar bar1 = new Bar(tChart1.getChart());
		bar1.fillSampleValues();
		bar1.setMultiBar(MultiBars.STACKED);
		
		Bar bar2 = new Bar(tChart1.getChart());
		bar2.fillSampleValues();
		bar2.setMultiBar(MultiBars.STACKED);