PHP code example of ctala / yii2-ctala-chartjs

1. Go to this page and download the library: Download ctala/yii2-ctala-chartjs library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ctala / yii2-ctala-chartjs example snippets


<?

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"
        ]
);


php composer.phar