stranieroinpatria

Can't Use Javascript Apis

Recommended Posts

Hi all,

I had a problem to use anyone of the api's described in the documentation about FusionWidgets( http://www.fusioncha...m/widgets/docs/ ).The error was always ".... is not a function". I can use just setDataXML and setDataURL.

 

Then I tried to create a very simple page to understand wich is the problem:

 

Include FusionCharts.js v3 and create the function used for clear the chart...

 

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>PulseFCTry</title>

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

<script type="text/javascript">

function clearChart(){

chart=FusionCharts("fusionLineHOST00M");

chart.clearChart();

}

</script>

</head>

 

 

 

...after that I create the Chart and rendered it into a div (flag JS to 1)

 

<body>

<div id="divprova"></div>

<script type="text/javascript">

 

var myChart = new FusionCharts( "./chart/RealTimeStackedArea.swf" , "fusionLineHOST00M" ,"520","200","0","1");

myChart.setDataXML('<chart dataStreamURL="/ws/fusionLineUpd?idChart=" refreshInterval="5..........etc.......);

 

myChart.render('divprova');

 

</script>

 

<input type="button" onclick="clearChart()" value="Submit">

</body>

 

 

 

The result on click is "chart.clearChart is not a function"

 

Why??

 

 

PS. I'm running the site from a local server not from filesystem

Edited by stranieroinpatria

Share this post


Link to post
Share on other sites

After a week that I've posted this question (another thread opened is http://forum.fusioncharts.com/forum/30-jvscript-problems/) nobody gave me a response SO the only conclusion I can find is that the page of the documentation that explain the javascript methods for FusionWidgets is completely USELESS and there isn't any ways to use that.

AM I WRONG?CAN SOMEBODY JUST GIVE ME A CLEAR ANSWER?This situation is a bit frustrating....

Edited by stranieroinpatria

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

As of now, FusionWidgets does not support the same.

 

As yet this is supported by FusionCharts v3.2 only.

 

Could you please try using "getChartFromId" in place of "FusionCharts".

 

I hope this helps.

Share this post


Link to post
Share on other sites

Hi,

 

As of now, FusionWidgets does not support the same.

 

As yet this is supported by FusionCharts v3.2 only.

 

Could you please try using "getChartFromId" in place of "FusionCharts".

 

I hope this helps.

 

Hi,

thank's for your reply.

Use getChartFromId helps how?I can retrieve the reference of FusionCharts.

I'm asking about this methods explained in the documentation:

http://www.fusioncha...m/widgets/docs/

 

How can I use that?

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

Could you please resend us the link that you have mentioned in the previous post as the link seems to be not working?

 

Awaiting your reply.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

We have sent you a sample through our corporate account regarding the same.

 

Hope that helps. :(

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