Pie Chart Label Backgrounds

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ccapano
Posts: 12
Joined: Mon Sep 12, 2005 9:22 pm
Location: Frederick, Maryland
Contact:

Pie Chart Label Backgrounds

Post by ccapano » Thu May 18, 2006 3:48 pm

Is there a way I can make the Pie Chart Labels use the same background color as the Series color?

ccapano
Posts: 12
Joined: Mon Sep 12, 2005 9:22 pm
Location: Frederick, Maryland
Contact:

Post by ccapano » Thu May 18, 2006 8:54 pm

What I would like to do is this:

piePlot.setLabelBackgroundPaint(Color.CYAN);

Figure out a way to be able to set this paint to be the color of the series the label is for.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri May 19, 2006 9:14 am

There is a single label background colour shared by all labels. To make each label have a different colour, you'll need to modify the PiePlot class.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

ccapano
Posts: 12
Joined: Mon Sep 12, 2005 9:22 pm
Location: Frederick, Maryland
Contact:

Post by ccapano » Fri May 19, 2006 12:41 pm

Thanks, thats what I was thinking would have to be done

Locked