Prakash K Report post Posted March 11, 2011 RenderChartHTML method redering data not refected in Chart Share this post Link to post Share on other sites
Guest Angie Report post Posted March 11, 2011 Hi, Welcome to FusionCharts Forum! Could you please elaborate your issue a little bit more? If possible, please send us any live link or the entire code to look into the issue from our end. Awaiting for your reply. Share this post Link to post Share on other sites
Prakash K Report post Posted March 11, 2011 Hi , I have display chart using RenderChartHTML method. in button click event written following code lbltest.Text = FusionCharts.RenderChartHTML("Fusion Charts/FCF_MSColumn3D.swf", strXmlMSDOpenClosed, "", "MSDOpenClosed", "400", "300", false); strXmlMSDOpenClosed - is XML File but some time displyed correct chart and most of time XMLfile have some value ,but chart displyed some junk data. my page is developed on ASP.NET & C# ,no caching in my page This is my issue.Chart displayed wrong data By, Prakash.K Share this post Link to post Share on other sites
Prakash K Report post Posted March 14, 2011 Hi , I have display chart using RenderChartHTML method. in button click event written following code lbltest.Text = FusionCharts.RenderChartHTML("Fusion Charts/FCF_MSColumn3D.swf", strXmlMSDOpenClosed, "", "MSDOpenClosed", "400", "300", false); strXmlMSDOpenClosed - is XML File but some time displyed correct chart and most of time XMLfile have some value ,but chart displyed some junk data. my page is developed on ASP.NET & C# ,no caching in my page This is my issue.Chart displayed wrong data By, Prakash.K Share this post Link to post Share on other sites
Guest Angie Report post Posted March 14, 2011 Hi, Welcome to FusionCharts Forum! Could you please send us a screenshot or the entire code to look into the issue from our end? Awaiting for your reply. Share this post Link to post Share on other sites
Prakash K Report post Posted March 14, 2011 hi, unble to attached screenshot for incorrect data display . The chart is diplay incorrectly on same data But passing XML is Same.But chat is behave diffrent and display on same data. Regards. Prakask.K Share this post Link to post Share on other sites
Guest Angie Report post Posted March 14, 2011 (edited) Hi, Welcome to FusionCharts Forum! For more details, please refer to the link below: http://www.fusioncha...sicExample.html http://www.fusioncha...ASP_JS_XML.html Hope this helps. Edited March 14, 2011 by Angie Share this post Link to post Share on other sites
Prakash K Report post Posted March 14, 2011 I have tried this way already. for example i am using below XML For Chart <graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' decimalPrecision='0' formatNumberScale='0' > <set name='Jan' value='462' color='AFD8F8' /> <set name='Feb' value='857' color='F6BD0F' /> </graph> First time showing 2 bars with correct value and secontime showing 3 bars with wrong value Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 14, 2011 Hi Prakash, Its seems that the data is being cache for some reason, a possible solution would be to pass "&noCache=" + Timer Tick Count with the XML URL. Example: strXmlMSDOpenClosed = strXmlMSDOpenClosed + "&noCache=" + DateTime.Now.Ticks.ToString(); lbltest.Text = FusionCharts.RenderChartHTML( "Fusion Charts/FCF_MSColumn3D.swf", strXmlMSDOpenClosed, "", "MSDOpenClosed", "400", "300", false); Hope this helps. Share this post Link to post Share on other sites
Prakash K Report post Posted March 15, 2011 i have tried this solution.Still my i am facing same issue. Some time chart displayed as "No data display" , but another time displyed as worng data chart. Regards, Prakash.K Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 15, 2011 Hi Prakash, Could you please try once with URL encode method? strXmlMSDOpenClosed = Server.URLEncode(strXmlMSDOpenClosed + "&noCache=" + DateTime.Now.Ticks.ToString()); lbltest.Text = FusionCharts.RenderChartHTML( "Fusion Charts/FCF_MSColumn3D.swf", strXmlMSDOpenClosed, "", "MSDOpenClosed", "400", "300", false); And, please make sure that if your page has more than one chart then each chart should have a unique chart id. Also, could you please let us know, what do you mean by Wrong data chart - Does it mean that chart is showing previous data even after updating the data or you mean something else? Share this post Link to post Share on other sites
Prakash K Report post Posted March 15, 2011 (edited) I have implement geven solution, but still problem not resolved My issue gerenate following ways: 1) some chart is showing previous data even after updating the data . after 20 seconds i check same data chart is showing correctly 2) some time XML file have Data but chart displayed "No data to display" ,after 20 second i have click displayed correct data. 3) some time no data XML file but chart is showing previous data .,after 20 second i have click displayed correct data. Note: My DLL : file version : 1.0.0.0 Product version : 1.0.0.0 Regards, Prakash.K Edited March 15, 2011 by Prakash K Share this post Link to post Share on other sites
Prakash K Report post Posted March 15, 2011 I have implement geven solution, but still problem not resolved How to check Chart ID is unique in ASP.NET page? My issue gerenate following ways: 1) some chart is showing previous data even after updating the data . after 20 seconds i check same data chart is showing correctly 2) some time XML file have Data but chart displayed "No data to display" ,after 20 second i have click displayed correct data. 3) some time no data XML file but chart is showing previous data .,after 20 second i have click displayed correct data. Note: My DLL : file version : 1.0.0.0 Product version : 1.0.0.0 Regards, Prakash.K Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 16, 2011 Hi Prakash, Could you please try the following method and let us know the result: 1. Open the XML URL file from the server side script and then provide the XML data as dataXML method. 2. If the XML file is being generated from the same script from which chart is rendering, then instead of providing the XML URL method, please try using the Data XML (XML String) method. Share this post Link to post Share on other sites
Prakash K Report post Posted March 16, 2011 Hi, i am already using DataXML method. i have using following syntax: lbltest.Text = FusionCharts.RenderChartHTML( "Fusion Charts/FCF_MSColumn3D.swf", strXmlMSDOpenClosed, "", "MSDOpenClosed", "400", "300", false); strXmlMSDOpenClosed is XML file But i am getting wornig chart using previous XML data value otherwise diplayed as "No data to display", after 20-30 i am check displayed as correcy chart. Regards, Prakash.k Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 16, 2011 Hi Prakash, The method you are using is call data URL method in this method you are passing XML File not XML string/dynamic XML to the chart. And in case of Data XML method you will have to pass the XML String not the file. Example of data XML method: strXml = "<chart><categories><category label='label-1' /><category label='label-2' /></categories><dataset><set value='10' /><set value='20'/></dataset></chart>" lbltest.Text = FusionCharts.RenderChartHTML( "Fusion Charts/FCF_MSColumn3D.swf", "", strXml, "MSDOpenClosed", "400", "300", false); Also, Please refer to the documentation link http://www.fusioncha...sicExample.html and go to section "Changing the above chart into a single page chart using dataXML method" to get more information on data XML method. Hope this helps. Share this post Link to post Share on other sites
Prakash K Report post Posted March 16, 2011 Hi, I am passing XML file only that xml file store on one application folfer. follwing way to pass XML. strXmlMSDOpenClosed = "Data/XMLFileMSDOpenClosed.xml"; lbltest.Text = FusionCharts.RenderChartHTML( "Fusion Charts/FCF_MSColumn3D.swf", "", strXml, "MSDOpenClosed", "400", "300", false); Regards, Prakash.K Share this post Link to post Share on other sites
Prakash K Report post Posted March 16, 2011 Hi, Any one help me regarding this issue. My task is urgent. Regards, Prakash.K Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 17, 2011 Hi Prakash, The issue you are facing is because the XML file is not being created when chart is fetching data from it, and after 20 seconds when XML file is completed created at the server end then only chart is able to read it properly, so you would need to make sure that when chart tries to read the data from the XML file, this file should have all the data, and the data writing process to the file has completed. Alternatively, you could try the method given below: System.Xml.XmlDocument oXML = new System.Xml.XmlDocument(); oXML.Load("Data/XMLFileMSDOpenClosed.xml"); strXmlMSDOpenClosed = oXML.OuterXml; lbltest.Text = FusionCharts.RenderChartHTML( "Fusion Charts/FCF_MSColumn3D.swf", "", strXmlMSDOpenClosed, "MSDOpenClosed", "400", "300", false); Also, the method you tried in your last post was absolutely wrong with respect to my previous post, because you are not passing any XML data to strXml variable. Share this post Link to post Share on other sites
Prakash K Report post Posted March 17, 2011 Hi, I have implement given solution, but still problem not resolved. Error msg : Error In loading Data my (Data/XMLFileMSDOpenClosed.xml) XML file Contant : <graph labelDisplay="ROTATE" showValues="0" xAxisName="Priority" yAxisName="Count" limitsDecimalPrecision="0" shownames="1" decimalPrecision="2" divLineDecimalPrecision="0" connectNullData="0" formatNumberScale="0" showShadow="0" showalternateHGridColor="1" alternateHGridColor="eeeeee" outCnvBaseFont="Verdana" outCnvBaseFontSize="8" baseFont="Verdana" baseFontSize="9" decimals="0" formatNumber="0" valuePadding="30" bgcolor="ffffff" rotateValues="1" canvasbgColor="CCCC99" canvasbgAlpha="60" canvasBorderColor="000000" canvasBorderThickness="2" canvasBorderAlpha="60"> <categories> <category name="Test1" /> <category name="Test2" /> <category name="Test3" /> <category name="Test4" /> </categories> <dataset seriesName="Start" color="76F157"> <set value="5" /> <set value="9" /> <set value="58" /> <set value="47" /> </dataset> <dataset seriesName="End" color="4169E1"> <set value="7" /> <set value="6" /> <set value="78" /> <set value="58" /> </dataset> </graph> Regards, Prakash.K Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 17, 2011 Hi Prakash, Could you please use the following code? System.Xml.XmlDocument oXML = new System.Xml.XmlDocument(); oXML.Load("Data/XMLFileMSDOpenClosed.xml"); strXmlMSDOpenClosed = oXML.OuterXml.Replace("\"","\'"); In the above code we are replacing all double quotes (") characters to single quote characters ('). Share this post Link to post Share on other sites
Prakash K Report post Posted March 17, 2011 Hi, I have inplement given Solution. No error but Chart dispayed as "Chart" I am using asp.net 3.5 master page with content page with update panel (Ajax asyn post back method) Regards, Prakash.K Share this post Link to post Share on other sites
Prakash K Report post Posted March 17, 2011 Hi, I have inplement given Solution. No error but Chart dispayed as "Chart" using RenderChart Method If using RenderChartHTML method get Error msg : Error In loading Data Note : I am using asp.net 3.5 master page with content page with update panel (Ajax asyn post back method) Regards, Prakash.K Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 17, 2011 Hi Prakash, Could you please send us the HTML Generated code for both method (RenderChart and RenderChartHTML) method. Share this post Link to post Share on other sites
Prakash K Report post Posted March 17, 2011 RenderChartHTML Html Code: <!-- START Code Block for Chart MSDOpenClosed --> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="300" name="MSDOpenClosed"> <param name="allowScriptAccess" value="always" /> <param name="movie" value="Fusion Charts/FCF_MSColumn3D.swf"/> <param name="FlashVars" value="&chartWidth=400&chartHeight=300&debugMode=0&dataURL=Data/XMLFileMSDOpenClosed.xml" /> <param name="quality" value="high" /> <embed src="Fusion Charts/FCF_MSColumn3D.swf" FlashVars="&chartWidth=400&chartHeight=300&debugMode=0&dataURL=Data/XMLFileMSDOpenClosed.xml" quality="high" width="400" height="300" name="MSDOpenClosed" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> <!-- END Code Block for Chart MSDOpenClosed --> RenderChart Html Code: <!-- START Script Block for Chart MSDOpenClosed --> <div id='MSDOpenClosedDiv' align='center'> Chart. </div> <script type="text/javascript"> var chart_MSDOpenClosed = new FusionCharts("FusionCharts/FCF_MSColumn3D.swf", "MSDOpenClosed", "400", "300", "0", "0"); chart_MSDOpenClosed.setDataURL("Data/XMLFileMSDOpenClosed.xml"); chart_MSDOpenClosed.render("MSDOpenClosedDiv"); </script> <!-- END Script Block for Chart MSDOpenClosed --> Regards, Prakash.K Share this post Link to post Share on other sites
Prakash K Report post Posted March 18, 2011 hi, any one reply me regarding this issue Regards, Prakash.K Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 18, 2011 Hi Prakash, It seems from your code that you are still using data URL method to render the chart, could you please send us the HTML code when you was using Data XML method, so that we can look where the XML is breaking. Share this post Link to post Share on other sites
Prakash K Report post Posted March 18, 2011 Both RenderChartHTML and RenderChart is displyed as "Error in Loading data" RenderChartHTML Html Code: <!-- START Code Block for Chart MSDOpenClosed634360593200603226 --> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="300" name="MSDOpenClosed634360593200603226"> <param name="allowScriptAccess" value="always" /> <param name="movie" value="FusionCharts/FCF_MSColumn3D.swf?ParsingDataText = Reading data"/> <param name="FlashVars" value="&chartWidth=400&chartHeight=300&debugMode=0&dataURL=<graph labelDisplay='ROTATE' showValues='0' xAxisName='Priority' yAxisName='Count' limitsDecimalPrecision='0' shownames='1' decimalPrecision='2' divLineDecimalPrecision='0' connectNullData='0' formatNumberScale='0' showShadow='0' showalternateHGridColor='1' alternateHGridColor='eeeeee' outCnvBaseFont='Verdana' outCnvBaseFontSize='8' baseFont='Verdana' baseFontSize='9' decimals='0' formatNumber='0' valuePadding='30' bgcolor='ffffff' rotateValues='1' canvasbgColor='CCCC99' canvasbgAlpha='60' canvasBorderColor='000000' canvasBorderThickness='2' canvasBorderAlpha='60'><categories><category name='P1' /><category name='P2' /><category name='P3' /><category name='P4' /></categories><dataset seriesName='Open' color='76F157'><set value='0' /><set value='1' /><set value='71' /><set value='11' /></dataset><dataset seriesName='Closed' color='4169E1'><set value='0' /><set value='1' /><set value='72' /><set value='11' /></dataset></graph>" /> <param name="quality" value="high" /> <embed src="FusionCharts/FCF_MSColumn3D.swf?ParsingDataText = Reading data" FlashVars="&chartWidth=400&chartHeight=300&debugMode=0&dataURL=<graph labelDisplay='ROTATE' showValues='0' xAxisName='Priority' yAxisName='Count' limitsDecimalPrecision='0' shownames='1' decimalPrecision='2' divLineDecimalPrecision='0' connectNullData='0' formatNumberScale='0' showShadow='0' showalternateHGridColor='1' alternateHGridColor='eeeeee' outCnvBaseFont='Verdana' outCnvBaseFontSize='8' baseFont='Verdana' baseFontSize='9' decimals='0' formatNumber='0' valuePadding='30' bgcolor='ffffff' rotateValues='1' canvasbgColor='CCCC99' canvasbgAlpha='60' canvasBorderColor='000000' canvasBorderThickness='2' canvasBorderAlpha='60'><categories><category name='P1' /><category name='P2' /><category name='P3' /><category name='P4' /></categories><dataset seriesName='Open' color='76F157'><set value='0' /><set value='1' /><set value='71' /><set value='11' /></dataset><dataset seriesName='Closed' color='4169E1'><set value='0' /><set value='1' /><set value='72' /><set value='11' /></dataset></graph>" quality="high" width="400" height="300" name="MSDOpenClosed634360593200603226" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> <!-- END Code Block for Chart MSDOpenClosed634360593200603226 --> RenderChart Html Code: <!-- START Script Block for Chart MSDOpenClosed --> <div id='MSDOpenClosedDiv' align='center'> Chart. </div> <script type="text/javascript"> var chart_MSDOpenClosed = new FusionCharts("FusionCharts/FCF_MSColumn3D.swf", "MSDOpenClosed", "400", "300", "0", "0"); chart_MSDOpenClosed.setDataURL("<graph labelDisplay='ROTATE' showValues='0' xAxisName='Priority' yAxisName='Count' limitsDecimalPrecision='0' shownames='1' decimalPrecision='2' divLineDecimalPrecision='0' connectNullData='0' formatNumberScale='0' showShadow='0' showalternateHGridColor='1' alternateHGridColor='eeeeee' outCnvBaseFont='Verdana' outCnvBaseFontSize='8' baseFont='Verdana' baseFontSize='9' decimals='0' formatNumber='0' valuePadding='30' bgcolor='ffffff' rotateValues='1' canvasbgColor='CCCC99' canvasbgAlpha='60' canvasBorderColor='000000' canvasBorderThickness='2' canvasBorderAlpha='60'><categories><category name='P1' /><category name='P2' /><category name='P3' /><category name='P4' /></categories><dataset seriesName='Open' color='76F157'><set value='0' /><set value='1' /><set value='71' /><set value='11' /></dataset><dataset seriesName='Closed' color='4169E1'><set value='0' /><set value='1' /><set value='72' /><set value='11' /></dataset></graph>"); chart_MSDOpenClosed.render("MSDOpenClosedDiv"); </script> <!-- END Script Block for Chart MSDOpenClosed --> Share this post Link to post Share on other sites
Prakash K Report post Posted March 18, 2011 Hi, Any update on this issue. Regards, Prakash.K Share this post Link to post Share on other sites
Prakash K Report post Posted March 18, 2011 Hi, Any one help me. Regards, Prakash.K Share this post Link to post Share on other sites