Hello,
Since you are rendering the chart in a div, to reload a new chart type render the new chart swf in the same way in the same div where you were rendering the previous chart.
Regards,
Madhumita Chakraborty
Hi
I am trying this. Here is the JavaScript code:
<script type="text/javascript">
renderChart(4);
function renderChart(chartID) {
var chartSWF = "";
if (chartID == 2) { chartSWF = "FusionCharts/MSCombi2D.swf"; }
if (chartID == 4) { chartSWF = "FusionCharts/MSColumn2D.swf"; }
var chartXML = "Chart_Brands_Page" + chartID + ".xml";
var Chart = new FusionCharts(chartSWF, "Chart1Id", "100%", "100%", "0", "1", "FFFFFF", "noScale");
Chart.setTransparent();
Chart.setDataURL(chartXML);
Chart.render("divAnalysis");
}
</script>
The first render, when ChartID = 2 works fine but when I call the function again with ChartID = 4 the chart is not rendered. I have tried reversing the order, so I know chart 4 renders fine when it is the first one. I have also experimented with alerts so I know the function is being executed each time and that the XML is correct, it is just the render that is not working.
Can you offer any suggestions as to where I might be going wrong?
Thanks,
Paul