deadliver

Chart Will Not Render Into Table

Recommended Posts

$htmlSTR =<<<EOD
<table>
..............blah blah blah here
<tr>
<td colspan="3"> {$FC->renderChart()}  </td>
</tr>
</table>
EOD;

 

 

 

I have this in a function and then return my string and echo it, but when I echo this the chart always renders above the table and not within the table. Any suggestions on how to code this?

 

or basically on how to determine where this shows up in a page ? I am not switching between php/html etc. All my code is straight php.

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Could you please try once by setting the "$renderAsHTML" and "$display" parameters of "renderChart()" function to "false"?

 

Ref. Code:

{$FC->renderChart(false,false)}

 

Please note that the syntax for the renderChart() function is:

mixed renderChart([boolean $renderAsHTML , Boolean $display ] )

 

Where, the default value of "$display" is true and the chart is printed to the response buffer.

 

If sets to false, the function will return the rendered HTML as string.

 

For more information on "FusionCharts PHP Class API Functions", please follow the link below:

http://docs.fusionch.../Functions.html

 

Hope this helps!

Edited by Sashibhusan

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