Hi again,
Can anyone tell me please how to set the Pie Sections' Color with JFreeChart 0.9.5 ??
Thanks
Repeating the question about Pie Sections' COLOR
Re: Repeating the question about Pie Sections' COLOR
For those who have the same problem for changing the color of Pie Sections. I added myself the setPaint method :O)
here it is:
Class PiePlot {
.
.
.
/**
* Returns the paint used to fill a section of the pie plot.
*
* @param section the section index (zero-based).
*
* @paran paint the paint used to fill the section.
*/
public void setPaint( int section, Paint paint ) {
this.paintTable.setPaint( 0, section, paint );
}
}
Regards
here it is:
Class PiePlot {
.
.
.
/**
* Returns the paint used to fill a section of the pie plot.
*
* @param section the section index (zero-based).
*
* @paran paint the paint used to fill the section.
*/
public void setPaint( int section, Paint paint ) {
this.paintTable.setPaint( 0, section, paint );
}
}
Regards
Re: Repeating the question about Pie Sections' COLOR
Sorry, this was an oversight by me while I was reshuffling the code for 0.9.5. It is fixed in CVS, and 0.9.6 will be released later this week or early next week.
Regards,
Dave Gilbert
Regards,
Dave Gilbert