SrinivasKothuri

Chart Shows All Axis Coordinates Same Value

Recommended Posts

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

Hi,

 

Welcome to FusionCharts Forum! smile.gif

 

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
Guest Angshu

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
Guest Angshu

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

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

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
Guest Angshu

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now