PHP code example of mrlco / yii2-sparkline

1. Go to this page and download the library: Download mrlco/yii2-sparkline 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/ */

    

mrlco / yii2-sparkline example snippets


    use mrlco\sparkline\Sparkline;

<?= \mrlco\sparkline\Sparkline::widget([
    'clientOptions' => [
        'type' => 'bar',
        'height' => 20,
        'barColor' => '#00a65a',
    ],
    'data' => [90, 80, 90, -70, 61, -83, 63]
]); 

php composer.phar