serbrech Report post Posted September 27, 2010 Is it possible to truncate the percentage in the tooltip of the pie charts? setting "decimals" attribute on the chart element has no effect on the percentage in the tooltips. Stéphane Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted September 27, 2010 Hi Stéphane, In case you wish to to show percentage values in tool tip please try setting the value of the attribute "showPercentInToolTip" to '1' in the <chart> element for the same. Ref.- http://www.fusioncharts.com/docs/ChartSS/Pie2D.html I hope this helps. Share this post Link to post Share on other sites
serbrech Report post Posted September 28, 2010 No you didn't understand what I mean. I do have percentage. percentages of each slice are calculated by fusioncharts and are used by default in the tooltip. I just want to truncate this percentage because It's useless the way it is. I can't show that to the users. It just doesn't make sense. See attached image Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted September 28, 2010 Hi, Please try setting the desired string that you wish to display in the as tooltext using the attribute "tooltext" in the <set> element. Ref.- <set...tooltext="Media, 62.39"/> I hope this helps. Share this post Link to post Share on other sites
serbrech Report post Posted September 28, 2010 Hi, Please try setting the desired string that you wish to display in the as tooltext using the attribute "tooltext" in the <set> element. Ref.- <set...tooltext="Media, 62.39"/> I hope this helps. So you mean if I want the percentage to be truncated I need to do it by myself? you provide a decimals attribute for the other number, how hard would it be to have it on percentage, where is makes actually more sense. I consider this as a bug. Why would I ever want 10 decimals on the default calculated percentage? I do not want to set the tooltip manually, I give a number and the pie chart automatically put percentage in the tooltip. All I want is to tell the precision. My initial question was quite easy : Is it possible? yes, no? Do you see that this is indeed a bug because it will in 90% of the case not be what the user expects? Is there some technical people who can answer this? Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted September 29, 2010 Hi, In case of Pie charts, if you wish to display a percentage value as a datavalue, then automatically the tooltip would also display the percentaged value as a tooltext. In case you wish to customize the tooltip and wish to display just the datavalue and not the percentaged value, you would need to use the attribute "tooltext" in the <set> element. In case the issue still persist, please send us the XML codes that you are using as an attachment so that we might test it in our lab? Awaiting your reply. Share this post Link to post Share on other sites
serbrech Report post Posted September 29, 2010 Here is the XML i use : <chart caption="Channels" decimals="1" showLegend="1" xAxisName="Utvalg" bgcolor="FCFCFC" yAxisName="Antall treff" useRoundEdges="1" labelDisplay="WRAP" chartRightMargin="20" formatNumberScale="0" formatNumber="0" decimalPrecision="0"> <set name="Media" value="1513" /> <set name="Governmental" value="7" /> <set name="Corporations" value="117" /> <set name="Organisations & Associations" value="24" /> <set name="Press Releases" value="492" /> <set name="Forums" value="55" /> <set name="Blogs" value="21" /> </chart> As you see I use plain values. the pie charts shows those same value on the graph, and that's good it also shows the percentage on the tooltip, and that's even better. but those percentage have 8 decimals (as you can see on the attached image 3 replies above) and that is terrible. so is there a way to set the precision of the percentage that the graph calculates. I understand that I set the tooltext manually, BUT THIS IS NOT WHAT I ASK. my question is can i set the precision on the calculated percentage. And if not, could this be added to the product backlog? Share this post Link to post Share on other sites
serbrech Report post Posted September 29, 2010 I understand that I set the tooltext manually, BUT THIS IS NOT WHAT I ASK. my question is can i set the precision on the calculated percentage. should read : "I understand that I can set the tooltext manually,..." Share this post Link to post Share on other sites