Skip to content

cordoval/EjosvpChartBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

init

inicialize google charts

<head>
...
{{ init_chart() }}
</head>

usage

in controller:

<?php

$pie = new Pie('pizza')
$pie->setRows(array(
    array('Mushrooms', 3),
    array('Onions', 1),
    array('Olives', 1),
    array('Zucchini', 1),
    array('Pepperoni', 2),
));
$pie->setOptions(array(
    'title' => 'How Much Pizza I Ate Last Night',
    'width' => 400,
    'height' => 300,
));

in template:

{{ render_chart(pie) }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published