customizing a bar

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
lax4mike
Posts: 6
Joined: Thu Jan 31, 2008 11:53 pm

customizing a bar

Post by lax4mike » Fri Feb 01, 2008 12:02 am

i'm looking to make the bar look similar to a stacked bar graph, but i only want to give it the 1 value.

for example, i want all values under 75 to be green, 75 - 100 to be green with yellow on top. so if the value is 60, just a green bar will be shown. if the value is 80, a green bar will be shown up until 75, then a yellow bar will continue until 80.

i figured an easy way to do this would be to create a background image and just cut it off at the value. but there might be an easier, more elegant way.

Locked