Auto Complete a Chart with Missing Months
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Auto Complete a Chart with Missing Months Expand / Collapse
Author
Message
Posted 4/1/2008 10:13:19 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/1/2008 10:05:50 AM
Posts: 1, Visits: 1
Hi,

I am attempting to use FusionCharts v3 to output some data which is returned from the database into a Recordset called RS.

The Data is held the recordset as follows...

Month                 Year                   Counter

2                        2006                  10

3                        2006                  56

6                        2006                  32

1                        2007                  34

What I am trying to do is to get the chart to complete the missing months with a value of 0 to show that there was nothing for those months.

At the moment I am using a while loop to write out a strXML which is than passed to the chart, it works although I can't seem to find a way of filling in these missing dates.

Can you please help?

Thanks,

Stewart

Post #5406
Posted 4/2/2008 3:11:12 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: 2 days ago @ 2:56:41 AM
Posts: 704, Visits: 1,139
Hi,

I am afraid, FusionCharts does not detect month values to auto-fill the gaps. In the while loop while fetching the values from database, you need to code yourself to fillup the missing gaps with 0 value.

Regards,

Sudipto Choudhury
FusionCharts Team

Post #5421
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 3:33pm


Execution: 0.344.