mch0lic / html_chart
HTML Chart
Installs: 1 213
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2021-08-05 05:43:39 UTC
README
Simple html charts library for symfony2 (PSR-0 compliant). The library uses HTML table tag to represent statistics in horizontal bar format.
Prerequisites
This version of the library requires Symfony 2.0+.
Installation
Installation:
- Add dependency to deps file and update vendors
- Register HtmlCharts library in autoload.php file:
$loader->registerNamespaces(array( // Load chart libraries 'HtmlChart' => DIR.'/../vendor/HtmlChart/lib', ));
Usage exaple
<?php namespace Acme\DemoBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use HtmlChart\Chart; class DefaultController extends Controller { public function indexAction() { <..> $chart_instance = new Chart(); <..> } } ?>