We have just converted from ChartDirector to JFreeChart. One chart type we have been using is causing us challenges. Could someone provide some guidance re how to do this. An example chart is available at:
www[dot]absolute-performance[dot]com/images/Area_SLA_Graph.png
Thanks in advance for your help.
-Jerry
PS. Apparently URLS and Images are not allowed for new posters...
Color Ranges in Area Charts
-
- Posts: 844
- Joined: Fri Oct 13, 2006 9:29 pm
- Location: Sunnyvale, CA
Re: Color Ranges in Area Charts
There is no native, out-of-the-box approach to creating this type of plot in JFreeChart. You can, however, create a custom renderer which is a modified version of XYAreaRenderer. A quick replacement for a custom renderer would be to simply use an XYAreaRenderer for the plot and add ValueMarkers or IntervalMarkers to the plot's range axis. You could color the IntervalMarkers to reflect the red, yellow, and green ranges.jgcabs wrote:Could someone provide some guidance re how to do this.
You obviously did not read How to Ask a Question About JFreeChart - READ THIS!. I added a lighthearted comment in italics inspired by this comment. It is the forum's policy to prevent new users from posting URLs and images as a spam prevention mechanims.jgcabs wrote:PS. Apparently URLS and Images are not allowed for new posters...
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
-
- Posts: 844
- Joined: Fri Oct 13, 2006 9:29 pm
- Location: Sunnyvale, CA
I have no idea how long it would take you. My first suggestion would be to use the quick replacement since you can do that without writing a custom renderer. After that, invest some time into reading the code for the XYAreaRenderer and see if you can understand it. If you can, make a copy and start modifying it to suit your needs. Be sure to submit a patch if you get it working.jgcabs wrote:Roughly how long should it take a strong Java developer to implement your suggestion?
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA