ChartJs

Introduction #

ChartJS package contains wrapped widget class for great chart library ChartJS. ChartJS library is very beautiful and rich in features. It is capable of replacing the Google Chart library. Not like Google Charts, ChartJS package can be used without internet so that is the greatest advantage of this package.

Installation #

  1. Unzip the chartjs.zip
  2. Copy the chartjs into koolreport/packages
  3. All done!

Namespace #

All the charts of package are under the namespace \koolreport\chartjs. You can directly use the class like this to create chart:

\koolreport\chartjs\LineChart::create(array(
    ...
));

or you can use use statement on top of page to declare the library before use

<?php
    use \koolreport\chartjs\LineChart;
?>

...
<?php
LineChart::create(array(
    ...
));
?>