Sign in to follow this  
arinte

Zero Values

Recommended Posts

Is there anyway to have fusion charts to not display an x-axis plot point if there is not corresponding y-value? So along the x-axis we have dates and on the y-axis we have the number of downloads, so if there is no downloads for a particular day don't render the date in the axis and don't render a 0;

 

Here is my json data:

{"chart":{"caption":"fruit-ninja","xaxisname":"Date","yaxisname":"Downloads","legend":"0","animation":"0","exportEnabled":"1","useRoundEdges":"1","slantLabels":"1","exportHandler":"/servlet/FCExporter","exportAction":"download","exportFormat":"PDF","showValues":"1","showPercentValues":"1","bgAlpha":"10"},"categories":[{"category":[{"label":"2011-07-19 00:00"},{"label":"2011-07-20 00:00"},{"label":"2011-07-21 00:00"},{"label":"2011-07-22 00:00"},{"label":"2011-07-23 00:00"},{"label":"2011-07-24 00:00"},{"label":"2011-07-25 00:00"},{"label":"2011-07-25 23:59"}]}],"dataset":[[{"seriesname":"fruit-ninja","data":[{"value":"0"},{"value":"0"},{"value":"0"},{"value":"7"},{"value":"0"},{"value":"0"},{"value":"0"},{"value":"0"}]}]]};

 

 

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

The scenario you are looking for would lead to three possible outputs:

 

For ex: You have four category labels in x axis say 1,2 ,3 , 4.

 

1. You can skip 3 and show only 1,2 and 4.

 

2. You can use spaces for 1,2,3 and 4, but hide the label for 3 and show blank data for 3.

 

3. You can show data for 1,2 ,and 4, but show blank data for 3.

 

 

Hope this helps.smile.gif

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