ctala / yii2-ctala-chartjs
An extention that helps create beautifull charts using ChartJS
Installs: 114
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-11-24 00:12:22 UTC
README
An extention that helps create beautifull charts using ChartJS
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist ctala/yii2-ctala-chartjs "*"
or add
"ctala/yii2-ctala-chartjs": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<? echo \ctala\chartjs\ChartJS::widget([ "data" => $datosAno2016, "responsive" => "false", "titulo" => "Ventas Sitios 2016", "id" => "canvas2016", "height" => 500, "width" => 1000, ] ); echo \ctala\chartjs\ChartJS::widget([ "data" => $datosAno2015, "responsive" => "false", "titulo" => "Ventas Sitios 2015", "id" => "canvas2015", "height" => 500, "width" => 1000, "chartType" => "line" ] ); ?>```