FusionCharts Beginner’s Guide:The Official Guide for FusionCharts Suite
上QQ阅读APP看书,第一时间看更新

Using the Data String method to provide data

As we had mentioned earlier, there are two ways to provide data to FusionCharts either as a URL to the datasource (Data URL method), or as a string (Data String method). Till now, we have used the former method by invoking the setXMLUrl() method on the chart instance and providing Data.xml as the URL. In order to pass the XML as a string to the chart, we can use the setXMLData() method, as explained next.