Sygris

Include menu.php bugs chart

Recommended Posts

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

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

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

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

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

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