thus:
In Piechart
1. How to get the color of each Section.
2. How to set the color of each Section Label.
How to make the Section and Label have the same color?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
At the moment all section labels use the same paint, set using the setSectionLabelPaint(...) method. So you'd need to modify the code to change that (it wouldn't be difficult). The getSectionPaint(int) method will tell you the color for each section.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Another developer has sent me some code for improving the pie chart labels, and I also have some half completed code that I worked on a while back. It won't make it into the next release, but it is reasonably high on the priority list to get resolved.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

