Pri Report post Posted November 20, 2012 Hi All, I am trying to create a line chart where i have 8 values only 1 of the 8 values is 1 rest are 0. When I try to plot this i get the following chart: fusion charts prb.bmp The problem is the values displayed on Y- Axis. When I put numDivLines='0' I get the following chart where the mapping is not correct, as it marks a value which is less than 1. fusion charts prb.bmp Can you please help me with this? Thank you, Pri Share this post Link to post Share on other sites
Pri Report post Posted November 21, 2012 Hey Friends, Any updates??? Share this post Link to post Share on other sites
Guest Sumedh Report post Posted November 21, 2012 Hi, A warm welcome to FusionCharts Forum! Apologies for the delay. Can you please share your chart XML? It would be helpful to look into it. Share this post Link to post Share on other sites
Pri Report post Posted November 22, 2012 Hi Sumedh, PFA the xml below: FG Forecast.xml Thanks, Priyanka Share this post Link to post Share on other sites
Guest Sumedh Report post Posted November 22, 2012 Hi, Thanks for sharing the chart XML. Can you please set "formatNumberScale" attribute as "1" and try once again? Ref. Code: <chart ... formatNumberScale='1'> The images that you attached are different. Please find attached screen-shot rendered using the XML that you have sent. Share this post Link to post Share on other sites
Pri Report post Posted November 22, 2012 Hi, I am sorry for attaching different xml. But the difference was about just 1 number in dataset. Rest the XML was same. Also thanks a lot for your suggestion this did solve my problem, but is there any way that I can avoid decimal numbers appearing on y-axis? Thank you, Pri. Share this post Link to post Share on other sites
Guest Sumedh Report post Posted November 23, 2012 Hi Pri, In this scenario, since the maximum data-plot value is "1" and default number of "divLines" are four, the values for Y axis are in decimal (which is automatically calculated by FusionCharts). So, if you want to show the values without the decimal either you would need to reduce the number of "divLines" or you will get duplicate values on Y- axis levels. To adjust the number of "divLines" set "adjustDiv" attribute as "0" and provide some higher value i.e., greater than "1" as the yAxis maximum limit value. Ref. Code: <chart ... formatNumberScale='0' numDivLines='1' adjustDiv='0' yAxisMaxValue='2'> Also, please find attached screen-shot for your reference. Share this post Link to post Share on other sites
Pri Report post Posted November 26, 2012 Thanks a lot Sumedh. Share this post Link to post Share on other sites