一个 html 页面包含 FusionCharts 组件。在这个组件下面是几个 html 控件,它们应该过滤这个组件的日期。最初,更新图表组件时出现问题,单击“过滤器”按钮后,我使用了以下代码:
currentChart.setDataURL(url);
currentChart.render("ChartDiv");
它没有用。它只是重新加载了相同的网址。它仅在我开始使以前的图表对象无效并在同一位置创建一个新对象时才起作用,而不是更新
currentChart = new FusionCharts('/FusionCharts/Maps/FCMap_WorldwithCountries.swf', "countryChart", "550", "200", "0", "1");
currentChart.setDataURL(url);
currentChart.render("ChartDiv");
我是不是不能更新现有的图表对象,只能用新的 url 重新创建它?