Guest Basundhara Ghosal

Remove Null Data and Corresponding labels?

Recommended Posts

Hey guys, firstly, I want to say you guys are doing an excellent job! Keep it up!

 

 

 

I have a problem that I need to fix. You see, I have a set up where we can dynamically import data from CSV files. The problem is that fusion charts are generally static for the most part.

 

 

 

I want to display data over the course of a month - say # of ice cream bars sold. Sometimes a month has 28 days, other times 29,30, or 31. On those days when it the month has less than 31 days, the chart will output a "undefined" value for the label and get rid of the null data. However, I want it to get rid of the corresponding LABEL as well. Is there any way I can achieve this?

 

 

 

I've read through a lot of the documentation (which is VERY well done, btw), but I can't seem to find an answer. The closest thing I found was 'connectNullData' but that's not the functionality I'm looking for. I want not only the null data to disappear from the graph, but the labels as well.

 

 

 

Thanks!

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Alex,

Welcome to FusionCharts forum and thanks for your appreciation.

Please try mentioning Exact number of <set> elements for each specific type.

For example, the month for which you have 28 Days, please try mentioning 28 <set> elements and the month for which you have 30 Days please try specifying 30 <set> elements for the same.

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi Basundhara Ghosal,

 

 

 

That's the problem. I don't want to have to set an exact different amount because everything needs to be general. Basically, the csv can have either 28,29,30, or 31 cells in it, but all of them are going to be read by ONE fusion chart. Right now, the fusion chart has 31 elements. What I want to do is if any of the values for the last few items are 'null', I want the labeled to be removed completely.

 

 

 

For example, let's say the month is February, which has 28 days. When the fusion chart goes to render, it realizes that

 

(I removed the < because it didn't show up)

 

set value='VariableFor29thDay'>

 

set value='VariableFor30thDay'>

 

set value='VariableFor31stDay'>

 

 

 

Are all null, I want it to remove the corresponding labels so that the chart only shows 28 labels instead of 31 labels with 3 data points being nonexistent.

 

 

 

Is there any way to achieve this?

 

 

 

Any help is appreciated. Thanks!

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Alex,

I am afraid, as of now FusionCharts does not support this. :)

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