qzgbd9lw

Is Scrollline2D Chart Only For Mutil-Series Data?

Recommended Posts

Hi,

I have a single-series line chart that displays 3000 datapoints. I'd like to use a scroll bar with this chart but when I changed

 

$FC1 = new FusionCharts("Line","1250","450","mdrprdebsal2");

to

$FC1 = new FusionCharts("ScrollLine2D","1250","450","mdrprdebsal2");

 

I get No Data to Display. This makes me think that Scroll charts are only for multi-series data. Is that the case?

 

Thanks,

Liz

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

No, you may use ScrollLine2D chart to display single series data also.

 

Since the XML data structure is different for Line and ScrollLine2D chart, you get No data to display error message when you feed in Line chart's XML data to ScrollLine2D chart.

 

If you wish to display only one series using the ScrollLine2D chart, then please use only one dataset element.

 

Ref. Code:

<chart caption='Business Results for 2006' xAxisName='Month' yAxisName='Revenue' showValues= '0' numVisiblePlot='6'>

  <categories>
     <category label='Jan' />
     <category label='Feb' />
     <category label='Mar' />
     <category label='Apr' />
     <category label='May' />
     <category label='Jun' />
     <category label='Jul' />
     <category label='Aug' />
     <category label='Sep' />
     <category label='Oct' />
     <category label='Nov' />
     <category label='Dec' />
  </categories>

  <dataset seriesName='2006'>
     <set value='27400' />
     <set value='29800'/>
     <set value='25800' />
     <set value='26800' />
     <set value='29600' />
     <set value='32600' />
     <set value='31800' />
     <set value='36700' />
     <set value='29700' />
     <set value='31900' />
     <set value='34800' />
     <set value='24800' />
  </dataset>

</chart>

 

Hope this helps!

Edited by Bindhu

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