Using multiple charts in a single Presentation |
In our previous example, we had seen how to use a single chart in a PowerPoint presentation. However, in ideal cases, you can have multiple charts spanning your presentation. We'll see how to attain that in this section. |
Setting up the charts |
First up, copy all the required chart SWF files into the presentation folder. This ensures that we can use these SWF files in our presentation. |
Building the data |
You now need to build the XML data for each chart that you wish to show in the presentation. Build the XML data for each chart and save it with different names. For this example, we'll build another XML representing sales of previous year (2005) and save the XML as Data2005.xml in the same folder. So, if you've 10 charts in your Presentation, you need to build 10 different XML files, each having a unique name - but all in the same folder as .ppt and .swf. |
Adding a new slide and the chart |
Now, to add the second chart, create a second slide and add the text labels you want. To add the chart, again select "Shockwave Flash Object" from Controls and draw it on the stage. Bring the properties dialog box for the same and enter the following as under: |
![]() |
We've first provided the full path of our line chart (the second chart that we add to this presentation). After that, we've appended the name of the XML Data file which we want this chart to plot from. In this example, since our data file is named as Data2005.xml, so we've appended ?dataURL=Data2005.xml to the name of our chart SWF file. For our previous chart, we've still used the default data file for FusionCharts - Data.xml. If you wish to change that, you can do it in a similar way - change the name of XML file and then append it as dataURL at the end of SWF File name. When you now view the presentation, you'll find our previous column chart in the first slide and line chart in the second slide. If the line chart doesn't show up or animate, right click on it and select play when viewing the presentation. |