SrinivasKothuri Report post Posted January 16, 2012 The following is the xml fed to generate a chart. <chart animation='1' imageSave='1' imageSaveURL='/hotel/Charts.jsp' showLabels='1' labelDisplay='Stagger' staggerLines='2' yAxisValueDecimals='0' chartBottomMargin='10' chartTopMargin='10' showhovercap='1' rotateValues='1' placeValuesInside='1' rotateXAxisName='1' chartLeftMargin='5' chartRightMargin='20' numDivLines='2' setAdaptiveYMin='1' defaultNumberScale='' numberScaleValue='1024, 1024' numberScaleUnit='k,M'> <set label='(other)' name='(other)' value='135' link='/records.jsp%3fid%3d^J7eaV9CDJojQB-741251CA'/> <categories> <category label='(other)' /> </categories> <legend showLegend='0'/> </chart> but the chart shows same value in all points of the horizontal axis. Kindly let me know if something need to be changed from this or is the behavior of FC indeed. Thanks in advance. Share this post Link to post Share on other sites
Guest Angshu Report post Posted January 17, 2012 Hi, Welcome to FusionCharts Forum! Could you please confirm the FusionCharts version and chart type(swf) you are using? Awaiting for your response. Share this post Link to post Share on other sites
SrinivasKothuri Report post Posted January 17, 2012 Hi Angshu, Thank you for your response. I'm using FC of version 3.2.1. and the chart type is column chart Share this post Link to post Share on other sites
Guest Angshu Report post Posted January 17, 2012 Hi, Thanks for your response. Could you please elaborate your query a bit more? It would be helpful, if you could send us a screenshot or any live link to look into it. Awaiting for your response. Share this post Link to post Share on other sites
SrinivasKothuri Report post Posted January 17, 2012 Please find the attached screen-shot. (plz notice the problem area is marked in red.) patient.bmp Share this post Link to post Share on other sites
Guest Angshu Report post Posted January 17, 2012 Hi, Thanks for your response. Could you please send us the relevant XML code (as per the screenshot) to look into the issue? Share this post Link to post Share on other sites
SrinivasKothuri Report post Posted January 17, 2012 below is the recent XML taken for the chart. <chart animation='1' imageSave='1' imageSaveURL='/hotel/Charts.php' showLabels='1' labelDisplay='Stagger' staggerLines='2' yAxisValueDecimals='0' chartBottomMargin='10' chartTopMargin='10' showhovercap='1' rotateValues='1' placeValuesInside='1' rotateXAxisName='1' chartLeftMargin='5' chartRightMargin='20' numDivLines='2' setAdaptiveYMin='1' defaultNumberScale='' numberScaleValue='1024, 1024' numberScaleUnit='k,M'> <set label='AA' name='AA' toolText='AA Value: 1135 Hz' value='1135' link='/records.php%3fid%3d^J7eaV9CDJojQB-741251CA'/> <categories> <category label='AA' /></categories> <legend showLegend='0'/> </chart> Share this post Link to post Share on other sites
Guest Angshu Report post Posted January 17, 2012 Hi, Thanks for your response. Could you please remove the attribute setAdaptiveYMin='1' from your XML code and see if this helps? Awaiting for your response. Share this post Link to post Share on other sites
SrinivasKothuri Report post Posted January 17, 2012 sorry but it resulted in an incorrect graph. the horizontal axis ranges 0, 400, 800, 1k and the 1.11k bar ended between 800 and 1k !! Share this post Link to post Share on other sites
Guest Angshu Report post Posted January 17, 2012 Hi, Thanks for your response. Could you please try once setting the chart limits explicitly using the yAxisMaxValue and yAxisMinValue attributes? Ex: <chart ... yAxisMinValue='400' yAxisMaxValue='800' setAdaptiveYmin='1' ........> Hope this helps. Share this post Link to post Share on other sites
SrinivasKothuri Report post Posted January 17, 2012 Is there any other way where the range will be set automatically? because, this problem occurs only when there is one item in the chart. If there are more items in the chart, the same kind of xml is working fine. I may not want to add new attributes in the xml (yAxisMaxValue and yAxisMinValue ). Share this post Link to post Share on other sites
Guest Angshu Report post Posted January 17, 2012 Hi, Thanks for your response. I am afraid, there is no other way to set the chart limits, as of now. In FusionCharts, the axis limits encompasses all values present in the chart i.e., no data value can be below the minimum y-axis value or above maximum y-axis value - they have to be within the axis range. Even if you force an axis limit that is lower/higher than this, FusionCharts will automatically adjust it. Ref: http://docs.fusioncharts.com/charts/?AttDesc/ChartLimits.html Hope this helps. Share this post Link to post Share on other sites