PIE chart border

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
jawednazarali
Posts: 6
Joined: Wed Feb 14, 2007 8:49 am

PIE chart border

Post by jawednazarali » Wed Feb 14, 2007 9:20 am

is there any way I can remove the border that encloses the pie chart only. In pie char we have two borders one that holds the entire chart along with the legend. the other only encloses the pie chart. I want to remove it, how I am going to do it?
Jawed Ali
http://www.jawed.info

Software is Harder than it sounds.

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 » Wed Feb 14, 2007 11:22 am

You can call plot.setOutlinePaint(null) or plot.setOutlineStroke(null) and the border will be hidden. You'll probably want to change the plot's background paint to blend in with the chart's background also.

I've made a couple of small additions to the next version of the JFreeChart Developer Guide, and put in a couple more index entries, to make this information easier to find there.
David Gilbert
JFreeChart Project Leader

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

jawednazarali
Posts: 6
Joined: Wed Feb 14, 2007 8:49 am

Post by jawednazarali » Wed Feb 14, 2007 12:38 pm

Thank you very much for the reply.

is there any way I can control the tool tips color,font and the linking line that points the related section of the pie.
Jawed Ali
http://www.jawed.info

Software is Harder than it sounds.

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 » Wed Feb 14, 2007 12:55 pm

Sure, there are loads of methods to customise those settings:

http://www.jfree.org/jfreechart/api/jav ... ePlot.html
David Gilbert
JFreeChart Project Leader

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

Locked