MattPowell Report post Posted November 20, 2007 Is it possible to force the numbers that appear on the y axis to be whole numbers? In this particular case the y-axis is the count of something that will always be a whole number.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> For example, the y axis will be automatically labeled with 0.6 and 1.2, when the value if the only item on the chart is 1. In this case I just want to have it labeled with 1.0. Share this post Link to post Share on other sites
Pallav Report post Posted November 23, 2007 You can set Share this post Link to post Share on other sites
aaronw.ca Report post Posted March 9, 2009 Was there a solution for this? That's exactly what I'm looking for but there doesn't seem to be a straightforward way of doing this that I can see. My data is entirely whole numbers, so I would also like the y-axis div values to be whole numbers as well, but it insists on using decimals. I've seen this question asked a number of times on this forum, but I haven't found an answer for this yet. Thanks Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 10, 2009 Hi, Could you please try using yAxisValueDecimals='0' in <chart> element? Share this post Link to post Share on other sites
aaronw.ca Report post Posted March 10, 2009 Hello Rahul, That did not work Thanks for the advice though! I'm using a 3d stacked column graph, as part of the free fusion charts package. Changing the precision values doesn't work, it simply rounds the yaxis values but doesn't change the scale of the graph. Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 12, 2009 Hi, I am afraid, it is not supported in FusionCharts FREE. Share this post Link to post Share on other sites
Pavel Lapin Report post Posted April 28, 2009 Hi, I'm trying out FusionCharts now. And I have the similar problem. I'm using the Bar2D.swf chart and I need only the whole-numbur-values for the x-axis. I've tryed to solve it with xAxisValueDecimals='0'. This didn't work. Is there any possibility to solve this problem? By the way, I have noted, there are a bug with x- and y-axisNames. The have been changed. So I have to assign the name of the x-axis using the "yAxisName" attribut. Thanks! Share this post Link to post Share on other sites
Dhruva Report post Posted April 29, 2009 Hello Pavel, Welcome to the forum. The axis name reversal is by design, to preseve a similar formatting for related charts. The spatial axes in case of bar charts are inverted, because the logical axes in the XML are kept constant. As regards the decimal precision, could you please try using yAxisValueDecimals='0' in the chart element? I hope this helps. Share this post Link to post Share on other sites
Pavel Lapin Report post Posted April 29, 2009 (edited) Hallo Dhruva, thank you for answering soon! I have already thought, that the axis're inverted and tried to force whole numbers with yAxisValueDecimals='0'. But it didn't worked. Edited April 29, 2009 by Guest Share this post Link to post Share on other sites
Dhruva Report post Posted April 30, 2009 You're welcome! Could you also add adjustDiv='0' to the <chart> element and try again? If need be, please specify the number of div lines manually, using the numdivlines attribute. I hope this helps. Share this post Link to post Share on other sites