Sign in to follow this  
dr.momen

problem in ScrolArea2D

Recommended Posts

Guest Basundhara Ghosal

Hi Momen,

Welcome to FusionCharts forum. :)

In case you wish to display Scroll Area 2D chart, please try using the "ScrollArea2D.swf " file of the trial pack of FusionCharts with PHP as the scripting language(as per your requirement).

Hope this helps. :)

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Suppose this is your BasicCharts.php contains the code below:

<?php

//We've included ../Includes/FusionCharts.php, which contains functions

//to help us easily embed the charts.

include("../Includes/FusionCharts.php");

?>

<HTML>

 <HEAD>

<TITLE>FusionCharts - Simple Column 3D Chart</TITLE> 

 </HEAD>

 <BODY>

 <?php

//Create the chart - Column 3D Chart with data from Data/Data.xml

echo renderChartHTML("../../FusionCharts/Column3D.swf", "Data/Data.xml", "", "myFirst", 600, 300, false); 

 ?>

 </BODY>

</HTML>

Your Data.xml file for ScrollArea2D chart should be:

<chart caption='Business Results 2005 v 2006' xAxisName='Month' yAxisName='Revenue' showValues='0' numberPrefix='$' 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>

 

 <dataset seriesName='2005'>

<set value='10000'/>

<set value='11500'/>

<set value='12500'/>

<set value='15000'/>

<set value='11000' />

<set value='9800' />

<set value='11800' />

<set value='19700' />

<set value='21700' />

<set value='21900' />

<set value='22900' />

<set value='20800' />

 </dataset>

 

 <trendlines>

<line startValue='26000' color='91C728' displayValue='Target' showOnTop='1'/>

 </trendlines>

 

 <styles>

 

<definition>

 <style name='CanvasAnim' type='animation' param='_xScale' start='0' duration='1' />

</definition>

 

<application>

 <apply toObject='Canvas' styles='CanvasAnim' />

</application>  

 

 </styles>

 

</chart>

I hope this helps you.

 

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