Sign in to follow this  
miickey

XML url data file is not load new file

Recommended Posts

Problem: XML data file is not load new file when press once submit button but press again xml on fusion chart is call new file .
I have filter on page when i press search button  for send variable value to write xml file. It's normal working.
Help me Please.

Thank You.

 

 

This's my code.

<a href="#"  onclick="changeMonth4();">Search</a>
 <div id="chartContainer1">FusionCharts will load here!</div>          
          <script type="text/javascript">        
              var myChart1 = new FusionCharts( "Charts/MSColumn2D.swf", "myChartId1", "1000", "450", "0", "1" );
              myChart1.setXMLUrl("XML/data.xml");
              myChart1.render("chartContainer1");
			  
			   function changeMonth4()
				{
					var chartReference = FusionCharts("myChartId1");
					chartReference.setXMLUrl("XML/data.xml");
					//window.parent.updateChart(newXML); 
					//chartReference.addEventListener("Rendered", function () { FusionCharts("myChartId1").exportChart();  } );
				}

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Welcome to FusionCharts Forum.

 

With regard to your query, it seems in the provided code snippet, you are updating the chart with the same data i.e. "data.xml", on click of "Search" option. So, the chart will update with the same data and no changes will be notified.

 

Could you please clarify a bit more on what exactly your requirement, to better assist you?

 

For more information on "Providing and Updating chart data", please visit the link: http://docs.fusioncharts.com/charts/contents/JavaScript/JS_ChangeData.html

 

Awaiting your valuable response.

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