andreybolonin / chartjs-bundle
Simple HTML5 charts using the canvas element.
Installs: 1 316
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Language:JavaScript
Requires
- php: >=5.3.3
- symfony/symfony: 2.*
This package is not auto-updated.
Last update: 2024-11-19 04:07:03 UTC
README
Current Version
Chart.js 1.0.1-beta.3
Installation
Add bundle to your composer.json file
// composer.json { "require": { // ... "andreybolonin/chartjs-bundle": "1.0.1.*@dev" } }
Add bundle to your application kernel
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Andreybolonin\ChartjsBundle\AndreyboloninChartjsBundle(), // ... ); }
Download the bundle using Composer
$ php composer.phar update andreybolonin/chartjs-bundle
Install assets
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
Usage
Refer to the desired files in your HTML template, e.g.
<script type="text/javascript" src="{{ asset('bundles/andreyboloninchartjs/js/Chart.min.js') }}"></script>
Licenses
Refer to the source code of the included files for license information