Sign in to follow this  
maheshnayak60@gmail.com

Update Xml File Used In Linear Guage Fusion Chart

Recommended Posts

I have the following xml file , to which i am trying to update the pointer value node and maxvalue attribute in the color range node, but i am facing some problem with the syntax to update the maxvalue atrribute node

 

Xml File

<chart editmode="1" bgColor="transparent" borderColor="transparent" chartTopMargin="0" showTickMarks="1" 
  	showTickValues="1" chartBottomMargin="0" upperLimit="200" lowerLimit="0" 
  	gaugeFillRatio="50,50"
  	dataStreamURL='Sample.aspx' refreshInterval='3' useSameFillColor="0">
 <colorRange>
<color id="ColorId" minValue="0" maxValue="19" code="5C8F0E" borderColor="5C8F0E" />
<color minValue="0" maxValue="200" code="383838"  />
 </colorRange>
 <pointers>
<pointer id='Id' value='92' />
</pointers>
<styles>
<definition>
 	<style name="limitFont" type="Font" bold="1" />
 	<style name="labelFont" type="Font" bold="1" size="10" color="FFFFFF" />
</definition>
<application>
 	<apply toObject="GAUGELABELS" styles="labelFont" />
 	<apply toObject="LIMITVALUES" styles="limitFont" />
</application>
 </styles>
</chart>

 

Sample.aspx file which returns the value for xml file

 

protected void Page_Load(object sender, EventArgs e)
   	{

       	int Count = GetCount();
       	int ColorCount = GetColorCount();
       	Response.Write("&Id=" + Count + "&ColorId=" + ColorCount );
   	}

Edited by [email protected]

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