Sign in to follow this  
rsivamanickam

How to set the Y axis interval values

Recommended Posts

Hi All,

 

We have the option to setting the 'Y' axis starting and Ending values to use . The fusion chart automatically divide the intervals like 0, 20, 40, 60, 80, and 100. But i want to give the intervals as am like 0, 10, 20, 30... etc.

 

 

 

Thanks,

 

Maalan

Share this post


Link to post
Share on other sites

Hi,

Could you please follow this way?

<Chart numDivLines='10' yAxisMaxValue='100' yAxisMinValue='0'  >

<set value='20' label='class 1' />

<set value='40' label='class 2' />

<set value='90' label='class 3' />

</Chart>

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

Thanks for your reply. I used that code. The interval working but it not in rounded that what i'm expected.

For an eg;

<chart palette='2' caption='This Weeks meals plan' xAxisName='Product' yAxisName='Value' showValues='1' formatNumberScale='0' useRoundEdges='1' numberSuffix='%'  numDivLines='10' yAxisMaxValue='100' yAxisMinValue='0'  adjustDiv='0' yAxisValueDecimals='0' >

<set label='A' value='58.1' />

<set label='B' value='67.12' />

<set label='C' value='57.1' />

</chart>

it shows the y axis intervals  like 0%, 9%, 18%, 27%,.... 91% and 100% i expected the intervals like 0, 10, 20, 30 .... 90 and 100. apart from this i'm using large interval like 0 to 5000 and y axis interval is 500. how to i give the intervals.

Thanks,

Maalan.

Share this post


Link to post
Share on other sites

Hi,

Could you please follow this XML?

<chart palette='2' caption='This Weeks meals plan' xAxisName='Product' yAxisName='Value' showValues='1' formatNumberScale='0' useRoundEdges='1' numberSuffix='%'  numDivLines='9' yAxisMaxValue='100' yAxisMinValue='0'  adjustDiv='0' yAxisValueDecimals='0' >

<set label='A' value='58.1' />

<set label='B' value='67.12' />

<set label='C' value='57.1' />

</chart>

For 5000 number scale you can use

<Chart numDivLines='9' yAxisMaxValue='5000' yAxisMinValue='0'  adjustDiv='0' >

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
Sign in to follow this