Sign in to follow this  
anila

how to click javascript on entire chart.

Recommended Posts

Hi,

I am very new to fusion chart development.

i m using java,jsp to build charts.

i want to call one javascript function on clicking on any where in the chart.

As of my knowledge we can call on bars and lines by using link property as part of set tag.

but i want same functnality for entire chart.

let me know is it possible.

Share this post


Link to post
Share on other sites

Hi,

Thank u very much for ur response Asap.

which page you reffered to me,i read already.

here they r calling particular html page as url.

insted of that shal i call javascript function like javascript:download('DwnNPS',4).

if i have the js file as external file.

Thanks Alot.....

Share this post


Link to post
Share on other sites

Hi,

I used like this in my jsp.

<chart labelDisplay='Rotate'  slantLabels='1'  connectNullData='1'  baseFont='Ge Inspira'  useRoundEdges='1' legendPosition='RIGHT'  yAxisName='NPS' legendBorderAlpha='0' shownames='1' showvalues='0' clickURL='download('DwnNPS',2)'>

by puting javascript function in head tag in same page.

<script language="javascript">

function download(feed,ctl){

var form  = document.forms[0];

form.method="POST";

form.action="ExtDXAction.do?type="+feed+"&cn="+ctl;

form.submit();

}

 </script>

it is showing invalid xml data.

may i know where i did the mistake.

Thanks,

Anila

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