CT-Rick Report post Posted November 18, 2009 I need to specify the order tyhat data is plotted on a pie chart - I have 4 labels 1. Label1 2. Label2 etc. I can control the start angle, how do I force the order that data is displayed? Using Pie2D.swf, coldfusion. Thanks in advance. Share this post Link to post Share on other sites
Guest Rajroop Report post Posted November 18, 2009 Hey Rick, Welcome! The order of the datasets would depend on the order in which they are slated/specified in the XML. In case this doesn't help, could you please post a snapshot of your desired output or send us a elaborate account of what exactly you are looking for in terms of the display of the datasets? Looking forward to your reply/feedback on this. Share this post Link to post Share on other sites
CT-Rick Report post Posted November 18, 2009 Here's my xml <chart caption='Performance Improvement Framework' bgColor='FFFFFF' showShadow='1' captionPadding='0' showValues='0' animation ='0' showPercentageValues='0'><set label='1. Plan' value='#session.val1#' /><set label='2. Execute' value='#session.val2#' /><set label='3. Support' value='#session.val3#' /> <set label='4. Monitor' value='#session.val4#' /></chart> and here's the output: Share this post Link to post Share on other sites
Guest Madhumita Report post Posted November 18, 2009 Hello, In order to specify the order in which the pie slices are to be placed please placethe set elements in that particular order. Suppose, you want the labels to be ordered as Label 2, label 1, label 3, label 4 in anti-clockwise direction place the set elements in the follwing order: <set label='2. Execute' value='7' /> <set label='1. Plan' value='6' /> <set label='3. Support' value='5' /> <set label='4. Monitor' value='7' /> Again, if you want to view the labels as label 1, label 2 , label 3, label 4 in clockwise direction place the <set> elements in the following manner: <set label='4. Monitor' value='7' /> <set label='3. Support' value='5' /> <set label='2. Execute' value='7' /> <set label='1. Plan' value='6' /> I hope this helps you. If you need further help on this please specify the order in which you wish to place the values so that we can help you solve the issue.as early as possible. Share this post Link to post Share on other sites
CT-Rick Report post Posted November 19, 2009 I did that! The xml above shows that I placed it in this order: <set label='1. Plan' value='#session.val1#' /> <set label='2. Execute' value='#session.val2#' /> <set label='3. Support' value='#session.val3#' /> <set label='4. Monitor' value='#session.val4#' /> ...but it didn't display that way. Share this post Link to post Share on other sites
CT-Rick Report post Posted November 19, 2009 ...oh wait - so I should reverse the order to display clockwise? OK I will try that. Thanks. Share this post Link to post Share on other sites
Guest Madhumita Report post Posted November 19, 2009 Hi, Please do let us know if the solutin worked for you. Till then, happy FusionCharting. Share this post Link to post Share on other sites
rawness Report post Posted December 2, 2009 Thanks for the above post, I am now ordering my pie slices in order. However, how do I control the start angle of the first pie slice? In the below pie, I want scope7 (the largest slice) to appear with its left side at 0 degrees to the vertical (ie, at 12 0'clock). Can this be controlled? Share this post Link to post Share on other sites
rawness Report post Posted December 2, 2009 OK, I've figured this out. If I apply the startingAngle property to the xml I am able to control this. Share this post Link to post Share on other sites
Guest Madhumita Report post Posted December 2, 2009 Hello, Great to know that you have solved the issue. Happy FusionCharting. Share this post Link to post Share on other sites