Sign in to follow this  
Manoj Gahlot

Setxmldata Is Not Working...

Recommended Posts

Since I am trying to generate Linear Gauge chart of Fusion Widget but I am generating XML as string in java script itself but it is not generating chart by setXMLData method.

I am placing my code below so please check it & let me know if I did any mistake in it...





<title>FusionGadgets Chart Gallery - Linear Gauge</title>

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



<body bgcolor="#ffffff">

<table width='98%' align='center' cellpadding='2' cellspacing='0'>


<td align="center">

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

<script type="text/javascript">

var myChart = new FusionCharts("../Charts/HLinearGauge.swf", "myChartId", "450", "80", "0", "0");

var xmlData = "<chart bgColor='FFFFFF' bgAlpha='0' showBorder='0' upperLimit='5000' lowerLimit='0' gaugeRoundRadius='5' chartBottomMargin='10' ticksBelowGauge='0' showGaugeLabels='0' valueAbovePointer='0' pointerOnTop='1' pointerRadius='9'> \n\

<colorRange> \n\

<color minValue='0' maxValue='0' name='GOOD' /> \n\

<color minValue='0' maxValue='2500' name='WEAK' /> \n\

<color minValue='2500' maxValue='100' name='BAD' /> \n\

</colorRange> \n\

<value>2110</value> \n\

<styles> \n\

<definition> \n\

<style name='ValueFont' type='Font' bgColor='333333' size='10' color='FFFFFF'/> \n\

</definition> \n\

<application> \n\

<apply toObject='VALUE' styles='valueFont'/> \n\

</application> \n\

</styles> \n\













Share this post

Link to post
Share on other sites
Guest Angshu



Welcome to FusionCharts Forum! smile.gif


Please note that the current version of FusionWidgets(v 3.1.1) does not support setXMLData() method, this will be supported in our next release i.e FusionWidgets v 3.2.


To provide XML data as a string, you would need to use setDataXML() method.


More details at: http://www.fusioncha...ts/DataXML.html


Hope this 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
Sign in to follow this