Sygris Report post Posted May 20, 2019 Hello, I have a file named menu.php and when I include it inside body tag before the chart include my chart gets weird. Share this post Link to post Share on other sites
Akash Biswas Report post Posted May 21, 2019 Hi, Please let us know if you are getting any error in the console. Also check if the chart is rendering fine without including your PHP file menu.php inside body tag. Ensure that you are using the FusionCharts PHP wrapper to render charts in PHP environment. Please refer to the documentation link for using the PHP wrapper of FusionCharts : https://www.fusioncharts.com/dev/getting-started/php/your-first-chart-using-php Thanks, Akash. Share this post Link to post Share on other sites
Akash Biswas Report post Posted May 21, 2019 Hi, Please let us know if you are getting any error in the console. Also check if the chart is rendering fine without including your PHP file menu.php inside body tag. Ensure that you are using the FusionCharts PHP wrapper to render charts in PHP environment. Please refer to the documentation link for using the PHP wrapper of FusionCharts : https://www.fusioncharts.com/dev/getting-started/php/your-first-chart-using-php Thanks, Akash. Share this post Link to post Share on other sites
Sygris Report post Posted May 21, 2019 Hi, Without the menu include my chart is working fine. There is no error in the console and I am using the PHP wrapper. Thanks, Sygris Share this post Link to post Share on other sites
Akash Biswas Report post Posted May 24, 2019 Hi Sygris, Please check your implementation in menu.php as it may be affecting the charts. This is not an issue from FusionCharts library. Thanks, Akash. Share this post Link to post Share on other sites
Sygris Report post Posted May 24, 2019 Hello, When i do the include before the html it works fine the problem is when I put the include in the beginning of the body tag. That´s my menu.php file. <?php $menu = ''; session_start(); if (isset($_SESSION['dt'])) { $menu = ' <li class="nav-item" id="ava"> <a class="nav-link" href="../dt/avaliacoes.php">Avaliações</a> </li>'; } else { $menu = '<li class="nav-item" id="ava"> <a class="nav-link" href="../avaliacoes">Avaliações</a> </li>'; } echo ' <style> .logo { margin-left: 10px; font-size: 100%; } .sair{ height: auto; max-width: 5%; max-height: 5%; } .img-fluid { width: 60%; } </style> <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> <a class="navbar-brand" href="#"> <img src="../../assets/img/logo.svg" width="30" height="30" alt="logo"> </a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#menu" aria-controls="menu" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="menu"> <ul class="navbar-nav mr-auto"> <li class="nav-item" id="dash"> <a class="nav-link" href="../estatisticas">Estatísticas</a> </li> '.$menu.' </ul> <a href="../funcoes/sair.php" class="btn btn-danger btn-sm"">SAIR</a> </div> </nav>'; ?> Share this post Link to post Share on other sites
Akash Biswas Report post Posted May 30, 2019 Hi, Your implementation in menu.php or the CSS applied might be affecting the chart below. This is not an issue of FusionCharts. Please check your implementation and implement accordingly. Thanks, Akash. Share this post Link to post Share on other sites