﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FusionCharts Forum / FusionCharts Free / XML Issue  / Javascript XML issue / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FusionCharts Forum</description><link>http://www.fusioncharts.com/forum/</link><webMaster>support@fusioncharts.com</webMaster><lastBuildDate>Tue, 02 Dec 2008 07:25:11 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Javascript XML issue</title><link>http://www.fusioncharts.com/forum/Topic1496-41-1.aspx</link><description>Can you please fwd me the XML output generated by your JS code - that'll be much easier for me to debug.</description><pubDate>Wed, 04 Jul 2007 11:41:10 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>Javascript XML issue</title><link>http://www.fusioncharts.com/forum/Topic1496-41-1.aspx</link><description>Hello,&lt;br&gt;&lt;br&gt;I'm trying to modify this file given as demo. Everything works good but what I want is change the colors of the datasets.&lt;br&gt;&lt;br&gt;I know how to do this in a simple xml file but in this page, the xml is generated by the javascript.&lt;br&gt;What I simply want to do is change the color of the line of one dataset:&lt;br&gt;&lt;br&gt;			&lt;br&gt;			[quote]//Based on the products for which we've to generate data, generate XML			&lt;br&gt;			strXML = (this.&amp;#100;ocument.productSelector.PointsF.checked==true)?(strXML + getProductXML(0)):(strXML)+ (" color='FF0000' ");&lt;br&gt;			strXML = (this.&amp;#100;ocument.productSelector.PointsA.checked==true)?(strXML + getProductXML(1)):(strXML);&lt;br&gt;			strXML = (this.&amp;#100;ocument.productSelector.Rebounds.checked==true)?(strXML + getProductXML(2)):(strXML);&lt;br&gt;			strXML = (this.&amp;#100;ocument.productSelector.Assists.checked==true)?(strXML + getProductXML(3)):(strXML);			&lt;br&gt;			strXML = (this.&amp;#100;ocument.productSelector.Steals.checked==true)?(strXML + getProductXML(4)):(strXML);&lt;br&gt;			&lt;br&gt;			//Close &lt;chart&gt; element;&lt;br&gt;			strXML = strXML + "&lt;/chart&gt;";&lt;br&gt;			&lt;br&gt;			//Return data&lt;br&gt;			return strXML;			&lt;br&gt;		}&lt;br&gt;		&lt;br&gt;		/**&lt;br&gt;		 * getProductXML method returns the &lt;dataset&gt; and &lt;set&gt; elements XML for&lt;br&gt;		 * a particular product index (in data array). &lt;br&gt;		 *	@param	productIndex	Product index (in data array)&lt;br&gt;		 *	@return					XML Data for the product.&lt;br&gt;		*/&lt;br&gt;		function getProductXML(productIndex){		&lt;br&gt;			var productXML;&lt;br&gt;			//Create &lt;dataset&gt; element			&lt;br&gt;			productXML = "&lt;dataset seriesName='" + data[productIndex][0] + "' &gt;";			&lt;br&gt;			//Create set elements&lt;br&gt;			for (var i=1; i&lt;=43; i++){&lt;br&gt;				productXML = productXML + "&lt;set value='" + data[productIndex][i] + "' /&gt;";&lt;br&gt;			}&lt;br&gt;			//Close &lt;dataset&gt; element&lt;br&gt;			productXML = productXML + "&lt;/dataset&gt;";&lt;br&gt;			//Return			&lt;br&gt;			return productXML;			&lt;br&gt;		}[/quote]&lt;br&gt;&lt;br&gt;As you can see, I tried do to it like this:&lt;br&gt;&lt;br&gt;strXML = (this.&amp;#100;ocument.productSelector.PointsF.checked==true)?(strXML + getProductXML(0)):(strXML)+ (" color='FF0000' ");&lt;br&gt;&lt;br&gt;In red you can see my try but that didnt work out, the html page is still valid but the colors are still random. Anyone that can teach me how to do it properly?&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Mon, 02 Jul 2007 05:45:43 GMT</pubDate><dc:creator>klazoid</dc:creator></item></channel></rss>