Multiple Fusion Charts in WordPress Post
-
I’m using FusionChartsFree and have successfully managed to get the charts working, but I’m not a programmer, so I just follow instructions, lol.
This is the code I’m using, but as you probably already know, I have to change some values to put another chart, and I don’t know what to change. This is my site.
<script src="https://mydomain.com/FusionChartsFree/JSClass/FusionCharts.js" type="text/javascript"></script> <script type="text/javascript">// <![CDATA[ var myChartId = 'chart1'; var myChartSWF = 'https://mydomain.com/FusionChartsFree/Charts/FCF_Column3D.swf'; var myChartWidth = '600'; var myChartHeight = '400'; var myDataXML = 'https://mydomain.com/FusionChartsData/Lobbying.xml'; document.write('<span id="' + myChartId + 'container">') var chartObj = new FusionCharts(myChartSWF, myChartId, myChartWidth, myChartHeight); chartObj.setDataURL(myDataXML); chartObj.render(myChartId + 'container'); // ]]></script>
I changed the .xml file and the .swf file, but nothing happens. Any ideas?
The guy that give the advice on his blog said
Tips: To add more than one chart per post, simply copy the second <script> block and place it anywhere else in your page and provide new values for all the variables starting with “my”.
Here is the site that gives the instructions
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Multiple Fusion Charts in WordPress Post’ is closed to new replies.