Sign in to follow this  
OMMPAVAN

Linked Charts Doubt

Recommended Posts

Hai can you tell me why my linked chart is not working with below code

 

 

 

<html>

<head>

<title>My First chart using FusionCharts</title>

<script type="text/javascript" src="FusionCharts.js">

</script>

</head>

<body>

<div id="chartContainer">FusionCharts will load here!</div>

<div id="linkedchart-container" >Descendant charts will load here</div>

<script type="text/javascript"><!--

 

var myChart = new FusionCharts( "Column2D.swf",

"myChartId", "320", "250", "0", "1" );

myChart.setXMLUrl("data.xml");

myChart.render("chartContainer");

 

myChart.configureLink (

{

swfUrl : "Pie3D.swf",

insertMode: 'append',

renderAt : "linkedchart-container",

 

overlayButton:

{

message: 'close',

fontColor : '880000',

bgColor:'FFEEEE',

borderColor: '660000'

}

}, 0);

 

// -->

</script>

</body>

</html>

-----------------------------------Data.xml--------------------------------------------

<chart caption="Yearly sales" xAxisName="Year" yAxisName="Sales">

<set label="2004" value="37800" link="newchart-xml-2004-quarterly" />

<set label="2005" value="21900" link="newchart-xml-2005-quarterly" />

 

 

<linkeddata id="2004-quarterly">

<chart caption="Quarterly Sales Summary" subcaption="For the year 2004"

xAxisName="Quarter" yAxisName="Sales" >

<set label="Q1" value="11700" />

<set label="Q2" value="8600" />

<set label="Q3" value="6900" />

<set label="Q4" value="10600" />

</chart>

</linkeddata>

 

<linkeddata id="2005-quarterly">

<chart caption="Quarterly Sales Summary" subcaption="For the year 2005"

xAxisName="Quarter" yAxisName="Sales">

<set label="Q1" value="5500" />

<set label="Q2" value="7100" />

<set label="Q3" value="3900" />

<set label="Q4" value="5400" />

</chart>

</linkeddata>

 

</chart>

Edited by OMMPAVAN

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