• Resolved lance_kidd

    (@lance_kidd)


    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)
  • Thread Starter lance_kidd

    (@lance_kidd)

    Figured it out.

    Just have to change this line to chart2, chart3 and so forth, and of course, put in your charts new .xml data file url.

    var myChartId = 'chart1';

    Figured I’d answer this question in case anyone wanted FusionChartsFree in their WordPress Blogs.

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple Fusion Charts in WordPress Post’ is closed to new replies.