﻿<?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 v3 / Using FusionCharts / Miscellaneous  / Can I change "plotPriceAs" value in candlestick chart using setDataXML function ? / 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 05:41:46 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Can I change "plotPriceAs" value in candlestick chart using setDataXML function ?</title><link>http://www.fusioncharts.com/forum/Topic852-37-1.aspx</link><description>You'll need to re-generate the entire XML.</description><pubDate>Mon, 23 Apr 2007 01:51:54 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: Can I change "plotPriceAs" value in candlestick chart using setDataXML function ?</title><link>http://www.fusioncharts.com/forum/Topic852-37-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;Just curious about this:&lt;br&gt;&lt;br&gt;if the chart data is coming from a XML file, and I only want to change the plotPriceAs value in functional attribute, will [b]setDataXML[/b] allow me to change only that small portion or do I need to re-generate the entire XML data structure in [code]javascript[/code] as per the sample given in the website ?&lt;br&gt;&lt;br&gt;Anyone can help ?&lt;br&gt;&lt;br&gt;</description><pubDate>Sun, 22 Apr 2007 23:09:29 GMT</pubDate><dc:creator>wai</dc:creator></item><item><title>RE: Can I change "plotPriceAs" value in candlestick chart using setDataXML function ?</title><link>http://www.fusioncharts.com/forum/Topic852-37-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;if I were to change the attribute "plotPriceAs", am I refer it as "name" like below:&lt;br&gt; name='plotPriceAs' value='Line'&lt;br&gt;&lt;br&gt;This is the code I used in the script:&lt;br&gt;&lt;br&gt;[code]function uptChart(DOMId,x) {&lt;br&gt;            //using updateChartXML method defined in FusionCharts JavaScript class&lt;br&gt;&lt;br&gt;	    var chart1 = new FusionCharts("../Charts/CandleStick.swf", "ChartId", "600", "400","0","0");      &lt;br&gt;	    chart1.setDataURL("Data/Candle6.xml");&lt;br&gt;            if(chart1.setDataXML) {&lt;br&gt;           if(x==2) {&lt;br&gt;            //name='plotPriceAs' value='Line'&lt;br&gt;            chart1.setDataXML("&lt;chart&gt;&lt;set name='plotPriceAs' value='Line' /&gt;&lt;/chart&gt;");&lt;br&gt;            } else {&lt;br&gt;            //name='plotPriceAs' value='Candlestick'&lt;br&gt;	    chart1.setDataXML("&lt;chart&gt;&lt;set name='plotPriceAs' value='Candlestick' /&gt;&lt;/chart&gt;");&lt;br&gt;	    }&lt;br&gt;	    } else {&lt;br&gt;            alert("setDataXML not supported");&lt;br&gt;            }&lt;br&gt;	    chart1.render('chartdiv');&lt;br&gt;         }&lt;br&gt;&lt;/script&gt;[/code]&lt;br&gt;&lt;br&gt;I got this error when I execute my script:&lt;br&gt;&lt;br&gt;[i]Error: chartObj.setDataXML is not a function&lt;br&gt;Source File: file:///E:/leong%20folder/PowerCharts_Eval/JSClass/FusionCharts.js&lt;br&gt;Line: 137[/i]&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Anything wrong with my code ? Please help.&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;</description><pubDate>Sun, 22 Apr 2007 21:00:25 GMT</pubDate><dc:creator>wai</dc:creator></item><item><title>RE: Can I change "plotPriceAs" value in candlestick chart using setDataXML function ?</title><link>http://www.fusioncharts.com/forum/Topic852-37-1.aspx</link><description>Yes - you can do so. But, essentially it'll be a redraw of the chart.</description><pubDate>Sat, 21 Apr 2007 02:30:32 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>Can I change "plotPriceAs" value in candlestick chart using setDataXML function ?</title><link>http://www.fusioncharts.com/forum/Topic852-37-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;Did anyone try to change plotPriceAs from "candlestick" to "line" using setDataXML function without generate 2 sets of XML data ?&lt;br&gt;&lt;br&gt;Please help.&lt;br&gt;&lt;br&gt;Regards</description><pubDate>Fri, 20 Apr 2007 04:34:22 GMT</pubDate><dc:creator>wai</dc:creator></item></channel></rss>