Sign in to follow this  
cobra

X-Axis Labels At Custom Intervals

Recommended Posts

Is it possible to display x-axis labels at custom intervals?

 

For example:

 

x-axis values: 1, 3.15, 4.24, 5.04, 7, 9, 10, 11.2, 13,17, etc.

 

desired x-axis labels: 0,5,10,15, 20, etc.

 

Thanks!

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

Please try the same using < labelStep='5'> attribute inside the <chart> element.

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites

Thanks for the reply!

 

Your suggestion correctly displays every fifth label, but the values of those labels are based on the given data.

 

For example:

x-axis data: 0, 1.3, 2.4, 2.9, 3.8, 4.6, 5.3, ....

 

x-labels: 0, 3.8, ... (where 3.8 is the fifth value)

 

desired x-labels: 0, 5, 10, ....

 

Is it possible to display x-axis values where data points may not exist?

 

Again, thanks for the help!

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

If you explicitly provide values for x-axis labels and set the data value as blank, it is possible to display x-axis values where data points may not exist.

 

Y-axis values will also be displayed in this case, no matter whether data points exists or not.

Hope this helps.smile.gif

Edited by Angie

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