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

dev-master / 1.0.1.x-dev 2014-08-15 13:47 UTC

This package is not auto-updated.

Last update: 2024-12-17 04:34:43 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

References

  1. http://chartjs.org
  2. http://symfony.com