BarChart:Set different background colors based on attribute.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
federico
Posts: 1
Joined: Fri Oct 02, 2015 9:40 am
antibot: No, of course not.

BarChart:Set different background colors based on attribute.

Post by federico » Fri Oct 02, 2015 9:51 am

I'm trying to set different background colors based on attribute range.

I know is possible because I found some example on the web but can't figure out how.
After trying several dozen "set*Paint(...)" methods I finally gave up.

Any ideas?

Your help is appreciated.

Example:
Image

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: BarChart:Set different background colors based on attrib

Post by John Matthews » Mon Oct 05, 2015 4:30 pm

An org.jfree.chart.plot.Marker "can be added to plots to highlight a value or range of values."

Locked