Repeating the question about Pie Sections' COLOR

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
morpheus

Repeating the question about Pie Sections' COLOR

Post by morpheus » Tue Feb 11, 2003 1:36 pm

Hi again,

Can anyone tell me please how to set the Pie Sections' Color with JFreeChart 0.9.5 ??

Thanks

morpheus

Re: Repeating the question about Pie Sections' COLOR

Post by morpheus » Tue Feb 11, 2003 2:03 pm

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

David Gilbert

Re: Repeating the question about Pie Sections' COLOR

Post by David Gilbert » Tue Feb 11, 2003 3:04 pm

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

Locked