Demo GChartBundle


QR Code Demo



Visualization Chart Demo

 

 

 

 

 

 

 

 

 

 

 

Simple Chart Demo


(2) commentaires

  1. Hello,

    i need to add some option like:
    hAxis: {minValue: 0}
    I try to put it in:
    $p = array(‘p’=>’hAxis: {minValue: 0}’);
    $dataTable = new DataTable\DataTable( $p );
    Nothing…

    $dataTable->addColumn(‘id1′, ‘label 1′, ‘string’, ‘hAxis: {minValue: 0}’);
    Nothing…

    And in the twig:
    {{ gchart_bar_chart(dataTable, ‘chart4′, 600, 200, ‘Durée des licenses’, ‘hAxis: {minValue: 0}’) }}

    But nothing…

    Is it possible to use options ?

    Tanks.

  2. Hi,
    Thanks for using GChart. Here is an example of using the hAxis option with linechart:

    {{ gchart_line_chart(dataTable2, 'chart3', 400, 200, 'coucou',{'hAxis': {'title': 'Hello', 'titleTextStyle': {'color': '#FF0000'}}}) }}

    so as you can see, options can be passed as an associative array to almost all twig functions. I hope it helps!

Laisser un commentaire

Les champs obligatoires sont indiqués avec *

*