lipilates Report post Posted June 27, 2008 When using the setDataXML as an option for data, is there a specific requirment to build the XML data in a single line without any Crt or tabs? When I'm looking on the XML in all examples all are like: and when it is inside the setDataXML like that: setDataXML(""); WHAT IS THE RIGHT WAY and is there any differece???? Yossi Share this post Link to post Share on other sites
Arindam Report post Posted June 28, 2008 (edited) Hi Yossi, Due to javascript programming when you provide xml data by setDataXML method then XML data must be in a single line without any Crt or tabs. If data comes from direct XML file i.e data.xml that time data will be in normal xml style. Please see the example. var strXML="<graph xAxisName='' yAxisName='' caption='' subCaption='' decimalPrecision='0' rotateNames='1' numDivLines='3' numberPrefix='' showValues='0' formatNumberScale='0'>"; strXML += "<categories>"; strXML += "<category name=''/>"; strXML += "</categories>"; strXML += "<dataset seriesName='Risk Range' color='FF0000' showValues='0'>" strXML += "<set value='100' />"; strXML += "</dataset>"; strXML += "</graph>"; setDataXML(strXML); Edited June 28, 2008 by Guest Share this post Link to post Share on other sites
zhmq0124v Report post Posted August 10, 2008 Is there a length limit of this xml data? I have no problems data in 10 days, but when show 31 days, it does not show up. Share this post Link to post Share on other sites
Arindam Report post Posted August 11, 2008 Hi, Could You please provide us XML that you are using? if your xml is very long then you can use dataURL method. Share this post Link to post Share on other sites
zhmq0124v Report post Posted August 11, 2008 I tried to use DataURL, it works. So is it because dataXML's length limit? Share this post Link to post Share on other sites
Arindam Report post Posted August 11, 2008 Hi, Could you please let us know the flash player version you are using? Share this post Link to post Share on other sites
lenny Report post Posted August 18, 2008 zhmq0124v (8/11/2008)I tried to use DataURL, it works. So is it because dataXML's length limit? I had similar problems when switching from a file based execution (setDataURL(...)) to a string based execution (setDataXML(...)). It turned out that I had special characters (e.g. %) in my string which, if loaded from file didn't cause any problems, but did when inputting the same XML as a string through setDataXML. Once I removed all reserved characters from my XML string, the chart rendered fine even when initialized with na XML string instead of a file URL. Share this post Link to post Share on other sites
Arindam Report post Posted August 18, 2008 hi, Could you please use encoded special characters? If you are using '%' then please use %25 and for '&' please use %26amp; Share this post Link to post Share on other sites