[SOLVED] angluar label connection line in pie charts

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
martink
Posts: 3
Joined: Thu Aug 21, 2008 2:21 pm

[SOLVED] angluar label connection line in pie charts

Post by martink » Fri Feb 03, 2012 5:38 pm

I'm trying to configure a pie chart to produce angluar connection lines between pie segments and labels. In jfreechart documentation on page 22 (figure 2.2) is an example image where the connection lines are styled the way I want them to look. When lookign at the referenced PieChartDemo2.java, I'm getting the standard rounded connection lines (when deactivating simple labels). How can I configure the chart to look like the one in documentation?

example in documentation:

Image

my version (simple labels deactivated) :

Image
Last edited by martink on Fri Feb 03, 2012 6:22 pm, edited 1 time in total.

martink
Posts: 3
Joined: Thu Aug 21, 2008 2:21 pm

Re: angluar label connection line in pie charts

Post by martink » Fri Feb 03, 2012 6:21 pm

OK, the link to the example for a good question post on "How to Ask a Question About JFreeChart - READ THIS!" post answered my question :P

Code: Select all

plot.setLabelLinkStyle(PieLabelLinkStyle.QUAD_CURVE);

Locked