dev-master
9999999-dev http://andreybolonin.comSimple HTML5 charts using the canvas element.
MIT
The Requires
- php >=5.3.3
- symfony/symfony 2.*
by Andrey Bolonin
bundle chart js
Simple HTML5 charts using the canvas element.
Chart.js 1.0.1-beta.3, (*1)
``` js // composer.json, (*2)
{ "require": { // ... "andreybolonin/chartjs-bundle": "1.0.1.*@dev" } }, (*3)
### Add bundle to your application kernel ``` php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Andreybolonin\ChartjsBundle\AndreyboloninChartjsBundle(), // ... ); }
``` bash $ php composer.phar update andreybolonin/chartjs-bundle, (*4)
### Install assets Given your server's public directory is named "web", install the public vendor resources ``` bash $ php app/console assets:install web
Optionally, use the --symlink attribute to create links rather than copies of the resources, (*5)
``` bash $ php app/console assets:install --symlink web, (*6)
## Usage Refer to the desired files in your HTML template, e.g. ``` html <script type="text/javascript" src="{{ asset('bundles/andreyboloninchartjs/js/Chart.min.js') }}"></script>
Refer to the source code of the included files for license information, (*7)
Simple HTML5 charts using the canvas element.
MIT
bundle chart js