Stacked 100% bar chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
demonhead
Posts: 24
Joined: Thu May 25, 2006 5:44 am

Stacked 100% bar chart

Post by demonhead » Fri Dec 22, 2006 10:21 am

i was wondering if anybody could has tried out rendering a 100% stacked bar chart, so you the stack adds upto exactly 100%.
If anybody has any bright ideas about these either reply or pm me please

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Dec 22, 2006 12:23 pm

There is a setRenderAsPercentages(boolean) method in the StackedBarRenderer class, specifically for this purpose.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

demonhead
Posts: 24
Joined: Thu May 25, 2006 5:44 am

Post by demonhead » Fri Dec 22, 2006 1:10 pm

david.gilbert wrote:There is a setRenderAsPercentages(boolean) method in the StackedBarRenderer class, specifically for this purpose.
hi David
the solution worked for a normal stacked bar but didnt work for a stacked3d. I am working with jfreechart1.0.1 and dont want to change my verison cause i have extended a lot many classes to suffice my needs of olap charting which were not addressed by JfreeChart. So in case its for a version 1.0.2 or ahead i would kindly ask u for a patch which would make the same possible.

And last but not the least i appreciate you prompt reply :D

Locked