bmcwhorter

2D Pie Chart Labels

Recommended Posts

Hi,

 

I'm having some difficulty getting consistent pie chart labels.

 

Specifically, when you set the smartLabelClearance with enableSmartLabels = 1, the flash version of the chart will give the correct distance to the labels that extend horizontally, but not those that extend vertically.  In javascript, all label lines are given the same distance.  Why is there a discrepancy in this behavior?

 

Please look at this charts in flash and javascript.

 

  <?xml version="1.0" encoding="utf-8" ?>
- <graph showFCMenuItem="0" animation="0" Caption="Pie Chart Transparency" bgColor="0047FF" showLabels="1" numberPrefix="" chartLeftMargin="50" chartRightMargin="" chartTopMargin="" chartBottomMargin="" showBorder="0" unescapeLinks="0" imageSave="1" imageSaveURL="rdTemplate/rdAnimatedChart/FCExporter.aspx" plotFillAlpha="100" pieRadius="150" enableSmartlabels="1" smartLabelClearance="150" showValues="1" enableRotation="1">
- <styles>
  <definition />
  <application />
  </styles>
  <set value="32.3800" name="VINET" toolText="" hoverText="" color="0000FF" />
  <set value="11.6100" name="TOMSP" toolText="" hoverText="" color="008000" />
  <set value="65.8300" name="HANAR" toolText="" hoverText="" color="FFFF00" />
  <set value="41.3400" name="VICTE" toolText="" hoverText="" color="FFC0CB" />
  <set value="51.3000" name="SUPRD" toolText="" hoverText="" color="0000FF" />
  <set value="58.1700" name="HANAR" toolText="" hoverText="" color="008000" />
  <set value="22.9800" name="CHOPS" toolText="" hoverText="" color="FFFF00" />
  <set value="148.3300" name="RICSU" toolText="" hoverText="" color="FFC0CB" />
  <set value="13.9700" name="WELLI" toolText="" hoverText="" color="0000FF" />
  <set value="81.9100" name="HILAA" toolText="" hoverText="" color="008000" />
  </graph>
 
 

 

Share this post


Link to post
Share on other sites

Hi,

 

Apologies for delay  :(

 

The difference in smart lines in Flash and JavaScript variant of Pie 2D when the attribute "smartLabelClearance" is used is an intended behavior of Pie 2D chart of FusionCharts.

 

Hope this helps.  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now