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…
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!
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.
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!