bar chart with different colors for each bar - one series

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
user1
Posts: 7
Joined: Thu Oct 12, 2006 8:33 am

bar chart with different colors for each bar - one series

Post by user1 » Thu Oct 12, 2006 8:49 am

hi.

i need to change the color of each bar , so i tried to customise the renderer but something wrong or i am not understanding somthing.

new to charts plz help... a little push or simple example will be great.

thanks in advance.

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Post by angel » Thu Oct 12, 2006 11:28 am

Extend the bar-renderer and overwrite the getItemPaint method.

user1
Posts: 7
Joined: Thu Oct 12, 2006 8:33 am

Extend the bar-renderer and overwrite the getItemPaint metho

Post by user1 » Thu Oct 12, 2006 4:10 pm

thanks i figure it. :)

Locked