https://github.com/misd-service-development/highcharts-bundle
[NOT MAINTAINED] Integrates PHP Highcharts into your Symfony2 application, which allows the programmatic creation of Highcharts
https://github.com/misd-service-development/highcharts-bundle
Last synced: 9 months ago
JSON representation
[NOT MAINTAINED] Integrates PHP Highcharts into your Symfony2 application, which allows the programmatic creation of Highcharts
- Host: GitHub
- URL: https://github.com/misd-service-development/highcharts-bundle
- Owner: misd-service-development
- Created: 2013-02-13T13:13:55.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-02-18T08:20:23.000Z (almost 13 years ago)
- Last Synced: 2024-11-04T15:52:19.540Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 107 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-symfony - highcharts-bundle - Integrates PHP Highcharts. (Miscellaneous)
README
HighchartsBundle
================
*This bundle is currently under development.*
This bundle integrates [PHP Highcharts](https://github.com/misd-service-development/php-highcharts) into your Symfony2 application, which allows the programmatic creation of [Highcharts](http://www.highcharts.com/).
Authors
-------
* Chris Wilkinson
Requirements
------------
* [Highcharts](http://www.highcharts.com/)
* [Symfony 2.1](http://symfony.com/)
Installation
------------
1. Add HighchartsBundle to your dependencies:
// composer.json
{
// ...
"require": {
// ...
"misd/highcharts-bundle": "dev-master"
}
}
2. Use Composer to download and install HighchartsBundle:
$ php composer.phar update misd/highcharts-bundle
3. Register the bundle in your application:
// app/AppKernel.php
class AppKernel extends Kernel
{
// ...
public function registerBundles()
{
$bundles = array(
// ...
new Misd\HighchartsBundle\MisdHighchartsBundle()
);
}
}
Usage
-----
### Creating a chart
See the [PHP Highcharts documentation](https://github.com/misd-service-development/php-highcharts) for details on how to create a chart object.
### Rendering a chart
Use the service:
$chart = $this->container->get('misd_highcharts.renderer')->render($chart);
$container = $this->container->get('misd_highcharts.renderer')->renderContainer($chart);
In a Twig template:
{{ highcharts_render(chart) }}
{{ highcharts_render_container(chart) }}
In a PHP template:
render($chart); ?>
renderContainer($chart); ?>
Reporting an issue or a feature request
---------------------------------------
Issues and feature requests are tracked in the [Github issue tracker](https://github.com/misd-service-development/highcharts-bundle/issues).