Chart.js 1.0.1-beta.3
// composer.json
{
"require": {
// ...
"andreybolonin/chartjs-bundle": "1.0.1.*@dev"
}
}
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Andreybolonin\ChartjsBundle\AndreyboloninChartjsBundle(),
// ...
);
}
$ php composer.phar update andreybolonin/chartjs-bundle
Given your server's public directory is named "web", install the public vendor resources
$ php app/console assets:install web
Optionally, use the --symlink attribute to create links rather than copies of the resources
$ php app/console assets:install --symlink web
Refer to the desired files in your HTML template, e.g.
<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