As you must already be aware by now, FusionWidgets accepts only XML data to plot the charts. You can either provide physical XML data files or dynamically relay XML data using server-side scripts to FusionWidgets. Here, we explore the various methods using which you can provide XML data to FusionWidgets.
There are 4 ways using which you can provide initial XML data to FusionWidgets:
- dataURL method - In this method, you only provide the URL of XML Data Document to FusionWidgets. The chart now sends a request for XML data to the specified URL, reads it, parses it and then renders the charts accordingly.
- dataXML method - Here, you send the XML data along with the HTML Content and chart SWF file to the browser. The SWF loads, reads this data (present in same HTML page) and then renders the chart.
- JavaScript method using setDataXML - In this method, you provide the XML data to FusionWidgets using JavaScript functions (present on the same page in which chart is present).
- JavaScript method using setDataURL - In this method, you provide the URL of the XML data document to FusionWidgets using JavaScript functions present on the same page in which chart is present. The chart now sends a request for XML data to the specified URL, reads it, parses it and then renders the charts accordingly.
Real-time data update has been covered in the section "Real-time capabilities"
Let's discuss each method in details next. |