greencannon

Change to Y axis if no data available

Recommended Posts

I'm using a 2D line chart to display a user's data by month, and it all works very nicely. The user can travel backwards and forwards, and the data displays perfectly. Y values can be between 0 and 10, so I have explicitly set yAxisMaxValue='10' and yAxisMinValue='0'.

 

 

 

The trouble occurs when someone attempts to display a month which is before the user started placing data in the database. So, say I started saving data in September, the problem arises when I try to display the graph for August. What happens is that the 'empty' graph displays, but the y axis changes to 0-100 instead of 0-10. In the scale of things, this isn't the end of the world -- but it would be neater if I could get it to continue showing 0-10 on the axis, particularly as I am also displaying a trend line - and this suddenly assumes a very new position.

 

 

 

I'm loving FusionCharts. Very intuitive, good fun. It would be the icing on the cake to know how to solve this small niggle.

Share this post


Link to post
Share on other sites

Hi Admin,

 

 

 

I am having the same problems. If I have all x value are 0, the y max value automatically show 100 even thought I set yAxisMaxValue = '10'.

 

 

 

I will send you an email Please email me one .swf file

 

 

 

Thanks,

 

 

 

Justin

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