Sign in to follow this  
Guest Basundhara Ghosal

Rendering chart in specified div

Recommended Posts

Guest Basundhara Ghosal

Hi Dave,

Welcome to FusionCharts forum. :)

Please try using the code mentioned below :-

Ref.- $chartHTML = $FC->renderChart(true, false);

...

 <div id='chartId'><?php echo $chartHTML ?></div>

Alternatively, you can also try using the sample been posted in [font= Verdana, Arial; FONT-SIZE: 12px" class=Apple-style-span>However, in this case you need to set the attribute for echo to true.

Ref.- $FC->renderChart(false,true,'myDIVtoPutChartIn');

Also, you need to define the Div before defining the code of rendering the chart.

Hope this helps. :)

Edited by Guest

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