Display multiple chart in the same page

238 views Asked by At

I'im using symfony 3.2 and ObHighchartsBundle , I'd like to know how to display many charts in the same page. Right now I'm able to display only one chart called "statMontant". I'd like to display the second chart inside the div with id "linechart2"

 <div class="col-sm-6 col-lg-6">
        <div id="linechart" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
  </div>

<div class="col-sm-6 col-lg-6">
        <div id="linechart2" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
    </div>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="//code.highcharts.com/4.1.8/highcharts.js"></script>
<script src="//code.highcharts.com/4.1.8/modules/exporting.js"></script>
<script type="text/javascript">

    {{ chart(statMontant ) }}
    {{ chart(statEva) }}
</script>
0

There are 0 answers