I made pie charts which have very thick and ugly lines around the chart and between the sectors. As I could change the colour of these lines with 'setSeriesOutlinePaint(...)', I supposed that I would succeed to change the lines with 'setSeriesOutlineStroke(...)'. But the appearance of the pies doesn't change at all. What's wrong here?
Thank you
Christoph
PiePlot.setSeriesOutlineStroke(...)
Re: PiePlot.setSeriesOutlineStroke(...)
Hi Christoph,
The approach you suggest makes sense...but it hasn't been implemented that way. It's easy to fix though. In the draw(...) method of the PiePlot class (in CVS it is now drawPie(...)) you will see code like this:
Paint paint = this.getSeriesPaint(section);
Paint outlinePaint = this.getSeriesOutlinePaint(section);
g2.setPaint(paint);
g2.fill(arc);
g2.setStroke(new BasicStroke());
g2.setPaint(outlinePaint);
g2.draw(arc);
I will change the setStroke line to:
Stroke outlineStroke = this.getSeriesOutlineStroke(section);
g2.setStroke(outlineStroke);
This change will be included in 0.9.3.
Regards,
DG.
The approach you suggest makes sense...but it hasn't been implemented that way. It's easy to fix though. In the draw(...) method of the PiePlot class (in CVS it is now drawPie(...)) you will see code like this:
Paint paint = this.getSeriesPaint(section);
Paint outlinePaint = this.getSeriesOutlinePaint(section);
g2.setPaint(paint);
g2.fill(arc);
g2.setStroke(new BasicStroke());
g2.setPaint(outlinePaint);
g2.draw(arc);
I will change the setStroke line to:
Stroke outlineStroke = this.getSeriesOutlineStroke(section);
g2.setStroke(outlineStroke);
This change will be included in 0.9.3.
Regards,
DG.