Sign in to follow this  
Nishi

Adjust div lines

Recommended Posts

Hi,

 

I need to adjust the y axis values in my chart in such a way that it has to be evenly spaced..Since the values are coming dynamically i am not able to set the min value or max value or set the number of div lines....So what i hav done is that i have given the attribute adjustDiv='0' so the y axis wil be evenly spaced...In almost all conditions its working....But in one condition wer the min value is 0 and max value is 1,the chart is not evenly spacing the y axis...its showing 0 0 0 0 1 1 1 1....Suppose if i removed the adjustDiv='0' attribute then this condition is working fine by evenly dividing the y axis....But in another condition were min value is 0 and max value is 43,the chart is only showing min value and max value...No other values are shown in between.....So i am confused what 2 do....Actually my need is to divide the axis evenly w/o giving any min/max value given explicitly......

 

 

 

 

 

Plz help me....

 

 

 

Thnx in advance...

 

 

 

Nishi

Share this post


Link to post
Share on other sites
Guest Rajroop

Hey Nishi,

 

 

 

Could you using: <chart .. .. showDivLineValues='1' .. .. > , and see if this helps?

 

 

 

Let us know! :)

Share this post


Link to post
Share on other sites

Hi Nishi,

I am afraid, your requirement of dividing the axis evenly without giving any min/max value explicitly, when the data are received dynamically, is not supported by FusionCharts, as of now. :)

Please do mention the attribute adjustDiv='0'. But as the data are received dynamically, so the chart sets the yAxisMinValue and yAxisMaxValue as per its requirement.

A suggestion for solving your purpose is to modify your codes with the required logic and passing it to the XML.

Hope this helps. :)

Edited by Guest

Share this post


Link to post
Share on other sites

Hi Sanjukta,

 

First of all thnx for the reply.....I wil try to modify the code...Dats ok..But my doubt is that for some graphs divisional lines are showing and for some, its not showing......I didnt giv adjustDiv attribute in the xml.....

Share this post


Link to post
Share on other sites
Guest Rajroop

Hi,

 

 

 

That was a throw in the dark indeed. :)

 

 

 

Well, here's hoping at least one of the two suggestions work out for you! :)

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