fill area between two lines in a graph
fill area between two lines in a graph
Does anybody know how to fill the area between two lines in a graphs?
I would like to have something the image shown on the URL
[/img]http://img27.exs.cx/img27/7403/graph6.jpg[url][/url]
[/img]http://img27.exs.cx/img27/7403/graph6.jpg[url][/url]
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You'll need to use two datasets and two renderers. The first dataset and renderer take care of the ordinary lines, the second dataset and renderer (XYDifferenceRenderer) take care of the fill between the other two lines.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

