Sign in to follow this  
uj2011

Executing Html To Get Powerchart

Recommended Posts

This is my html code but didnt get DragNode chart I have Fusioncharts.js on the place too.

 

Please suggest what cud be the problem to get result.

 

 

<html>

<head>

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

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

</script>

</head>

 

<body>

<div id="chartdiv" align="center">FusionCharts</div>

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

 

var chart = new FusionCharts("FusionCharts/DragNode.swf", "ChartId", "900", "650", "0", "0");

chart.setDataXML("<chart palette='2' xAxisMinValue='0' xAxisMaxValue='100' yAxisMinValue='0' yAxisMaxValue='100' is3D='1' showFormBtn='1' viewMode='0'> <dataset seriesName='DS1'> <set x='12' y='79' width='70' height='56' name='Node 1 with a long label' color='FE3233' id='1'/> <set x='59' y='15' width='40' height='56' name='Node 2' color='FE9191' id='2' link='n-http://www.fusioncharts.com'/> <set x='88' y='75' radius='37' shape='circle' name='Node 3' color='62D0FE' id='3' link='n-http://www.fusioncharts.com'/> <set x='33' y='35' radius='37' shape='circle' name='Node 4' color='FE8181' id='4' link='n-http://www.fusioncharts.com'/> <set x='40' y='85' width='45' height='67' name='Node 5' color='FE7272' BorderColor='ff5904' id='5' /> <set x='69' y='85' width='45' height='67' name='Node 6' color='72D4FE' id='6' link='n-http://www.fusioncharts.com'/> <set x='87' y='45' radius='47' shape='polygon' numSides='3' name='Node 7' color='FE5151' id='7' link='n-http://www.fusioncharts.com'/> <set x='65' y='60' radius='47' shape='polygon' numSides='5' name='Node 8' color='FE9191' id='8' link='n-http://www.fusioncharts.com'/> <set x='12' y='20' radius='37' shape='circle' name='Node 9' color='33C1FE' id='9' link='n-http://www.fusioncharts.com'/> <set x='80' y='12' radius='47' shape='polygon' numSides='4' name='Node 10' color='33C1FE' id='10' link='n-http://www.fusioncharts.com'/> </dataset> <connectors color='FF0000' stdThickness='5'> <connector strength='0.96' label='link label' from='1' to='9' color='BBBB00' arrowAtStart='1' arrowAtEnd='1' /> <connector strength='0.8' label='link12' from='1' to='5' color='BBBB00' arrowAtStart='1' arrowAtEnd='1' /> <connector strength='0.8' label='link2' from='1' to='8' color='BBBB00' /> <connector strength='0.3' label='link3' from='1' to='4' color='BBBB00' arrowAtStart='1' arrowAtEnd='1' /> <connector strength='0.4' label='link4' from='2' to='4' color='BBBB00' arrowAtStart='1' arrowAtEnd='1' /> <connector strength='0.6' label='link5' from='4' to='2' color='BBBB00' arrowAtStart='1' arrowAtEnd='1' /> <connector strength='0.33' label='link1' from='2' to='8' color='BBBB00'/> <connector strength='0.66' label='link7' from='8' to='3' color='BBBB00' arrowAtStart='1' arrowAtEnd='1' /> <connector strength='0.7' label='link6' from='4' to='5' color='BBBB00' arrowAtStart='1' arrowAtEnd='1' /> <connector strength='0.6' from='4' to='8' color='FF5904' arrowAtStart='1' arrowAtEnd='1'/> <connector strength='0.6' label='link9' from='5' to='8' color='BBBB00' /> <connector strength='0.5' label='link10' from='7' to='8' color='BBBB00' arrowAtStart='1' arrowAtEnd='1' /> <connector strength='0.3' label='link11' from='7' to='10' color='BBBB00'/> </connectors> ");

 

chart.render("chartdiv");

 

// -->

 

</script>

</body>

</html>

 

 

Thanks

Uj2011

Edited by uj2011

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum! smile.gif

 

Please find the modified code and the screenshot attached for your reference.

 

Hope this helps.

 

Please make sure to edit the path of FusionCharts.js and DragNode.swf in the attached code.

 

Hope this helps.

DragNode.html

post-10517-0-19300500-1322041907_thumb.png

Share this post


Link to post
Share on other sites

Thanks Angshu,

 

yeah it worked . what was the change as in i can see you have only chaged the chart.setDataXML (What is the difference between setXMLData and setDataXML ? ) ... As in i read its same ?

 

 

 

Uj2011

 

 

Hi,

 

Welcome to FusionCharts Forum! smile.gif

 

Please find the modified code and the screenshot attached for your reference.

 

Hope this helps.

 

Please make sure to edit the path of FusionCharts.js and DragNode.swf in the attached code.

 

Hope this helps.

Edited by uj2011

Share this post


Link to post
Share on other sites

Well it worked only thr Firefox and in IE its still nt working ... why?

 

Thanks Angshu,

 

yeah it worked . what was the change as in i can see you have only chaged the chart.setDataXML (What is the difference between setXMLData and setDataXML ? ) ... As in i read its same ?

 

 

 

Uj2011

 

 

 

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

I have only added the closing chart tag i.e "</chart>" under setDataXML() method.

 

Please note that setXMLData() function takes XML embedded as string from the JavaScript.

 

setDataXML(), which you have already been using in your application, although deprecated, this will continue to work without any problem.

 

I am afraid, we are not able to replicate the issue, as the code is working fine from our end.

 

Please find the screenshot attached for your reference.

 

Hope this helps.

post-10517-0-38751600-1322043808_thumb.png

Share this post


Link to post
Share on other sites

How do i run this thr IE?

 

Hi,

 

Thanks for your response.

 

I have only added the closing chart tag i.e "</chart>" under setDataXML() method.

 

Please note that setXMLData() function takes XML embedded as string from the JavaScript.

 

setDataXML(), which you have already been using in your application, although deprecated, this will continue to work without any problem.

 

Hope this helps.

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Could you please confirm the IE version you are using?

 

There might be some browser security issues from your end.

Share this post


Link to post
Share on other sites

I 've IE 9.0.3 on my m/c

 

 

Hi,

 

Could you please confirm the IE version you are using?

 

There might be some browser security issues from your end.

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Please make sure that:

 

1. You've Adobe Flash Player 8 (or above) installed on your machine.

 

2. You've enabled your browser to show ActiveX controls. Normally, it is enabled by default.

Share this post


Link to post
Share on other sites

1. Adobe Flash is installed 2 days back

2. I have seen the settings they r all default settings (ActiveX = enable)

 

 

Hi,

 

Please make sure that:

 

1. You've Adobe Flash Player 8 (or above) installed on your machine.

 

2. You've enabled your browser to show ActiveX controls. Normally, it is enabled by default.

Share this post


Link to post
Share on other sites

anyways thanks for help.

 

 

1. Adobe Flash is installed 2 days back

2. I have seen the settings they r all default settings (ActiveX = enable)

 

 

 

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

You are always welcome.

 

Please feel free to get back to us in case you have any further query.

Share this post


Link to post
Share on other sites
Guest Sumedh

Greetings, smile.gif

 

Please find the attached zip file for the sample code in C# for rendering DragNode Chart.

 

Please note, you would need to add reference (FusionCharts.dll) in your project.

 

For more information, please refer the following link:

http://docs.fusioncharts.com/charts/contents/?guide-for-web-developers/csnet/CS_BasicExample.html

 

Hope this helps. smile.gif

DragNode_Sample.zip

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