Sign in to follow this  
Steve Workings

hbullet chart help please

Recommended Posts

I've just upgraded from 3.2.2XT to 3.8, and my hbullet charts aren't rendering. Anyone know what's wrong with this: ?

 

        var mychart = new fusioncharts("charts/hbullet.swf", "mychartid2", "350", "50", "0", "1");
        mychart.setxmldata("<chart palette='3' lowerlimit='0' upperlimit='5' decimals='0' caption='' subcaption='' numberprefix='' numbersuffix='' showvalue='1'>  
        <colorrange>
            <color minvalue='0' maxvalue='74.5' code='#a6a6a6'/>
             <color minvalue='74.5' maxvalue='231.5' code='#cccccc'/>
             <color minvalue='231.5' maxvalue='270' code='#e1e1e1'/>
        </colorrange>
        <value>127</value>
        </chart>");

 

I've tried all differentways of referencing the chart -- with the path, without it, with the .swf extension, without it,etc. But I'm also not sure that's the problem.

 

Thanks.

 

 

Share this post


Link to post
Share on other sites

Edit - well, never mind I guess. I have no idea what I've now done differently, but it works and I don't even care why.

------------

 

I have pasted exactly what you show here, yet nothing shows up. Here is what I find in Chrome's Firebug:

 

<div id="77882372b49f4e6ba1c17b40193f0de8"></div>

<script type="text/javascript">
  var mychart = new FusionCharts("charts/hbullet.swf", "mychartid2", "350", "50", "0", "1");
        mychart.setXMLData("<chart palette='3' lowerlimit='0' upperlimit='5' decimals='0' caption='' subcaption='' numberprefix='' numbersuffix='' showvalue='1'>   <colorrange><color minvalue='0' maxvalue='74.5' code='#a6a6a6'/> <color minvalue='74.5' maxvalue='231.5' code='#cccccc'/> <color minvalue='231.5' maxvalue='270' code='#e1e1e1'/></colorrange><value>127</value></chart>");
    myChart.render("77882372b49f4e6ba1c17b40193f0de8");
    </script>

Edited by Steve Workings

Share this post


Link to post
Share on other sites

Hi Steve,

mychart.render("77882372b49f4e6ba1c17b40193f0de8");

The variable should be defined as "mychart". Please replace the render method with the above piece of code.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this