Sign in to follow this  

Problem in Using JavaScript functions as links

Recommended Posts


I am facing problem,

I used "Using JavaScript functions as links " example given in

but it is not working .

Error is also not showing, below line doesn't work. <code>

<set label='javascript' value='764' link="myJS('Hong Kong, 235');"  /> // this line present in myData.xml </code>

I am attatching my both files with them. please help me.





<script language="JavaScript" src="../FusionCharts/FusionCharts.js">




function myJS(myVar)







<body bgcolor="#ffffff" >

<div id="chartdiv" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div>


<script type="text/javascript">

  var myChart = new FusionCharts("../FusionCharts/Column3D.swf", "myChartId", "900", "300", "0", "0");









<chart caption='CAPGENT Technologies Pvt Ltd.' subcaption='Employee Id and their commission for year 2006'

xAxisName='Name of Capgent Employee' yAxisName='Employee Id' numberPrefix='Rs.'>

<set label='ashish' value='701' link='Chart.html' /> // this line is working fine with this code

<set label='javascript' value='764' link="myJS('Hong Kong, 235');"  /> // this line is not working

<set label='capgent' value='765'  />

<set label='aditya' value='766' />

<set label='shivam' value='801' />



Please help me out.

Edited by Guest

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