Hi all,
I'm using jfreechart to render a linechart diagram. I need to show bands in background, according to some pre-defined levels (range axis is defined as symbol axis).
E.g. band in range 1-2 must be green,band in range 2-6 must be yellow and so on
Maybe there's a way to customize the gridbands (now appearing ad alternate)?
Thank you,
regards,
Michela
custom gridbands paint
-
- Posts: 4
- Joined: Tue Sep 09, 2014 2:57 pm
- antibot: No, of course not.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: custom gridbands paint
You can use one of the addRangeMarker() methods:
http://www.jfree.org/jfreechart/api/jav ... ot.Marker-
The marker type you want is IntervalMarker.
http://www.jfree.org/jfreechart/api/jav ... ot.Marker-
The marker type you want is IntervalMarker.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
-
- Posts: 4
- Joined: Tue Sep 09, 2014 2:57 pm
- antibot: No, of course not.
Re: custom gridbands paint
Thank you, it works perfectly!
regards,
Michela
regards,
Michela