deadliver Report post Posted November 19, 2012 $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 Report post Posted November 26, 2012 (edited) 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 November 26, 2012 by Sashibhusan Share this post Link to post Share on other sites