PHP code example of keygenqt / yii2-highcharts

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

    

keygenqt / yii2-highcharts example snippets


use \keygenqt\highcharts\Highcharts;

<?= Highcharts::widget([
'jsOption' => [
    'chart' => [
        'type' => 'column',
        'plotBackgroundColor' => null,
        'plotBorderWidth' => null,
        'plotShadow' => false
    ],
    'title' => [
        'text' => 'Statistics'
    ],
    'xAxis' => [
        'allowDecimals' => true,
        'categories' => [
            'Download', 'Upload', 'Compress', 'Validate'
        ]
    ],
    'series' => [
        [
            'showInLegend' => false,
            'data' => [
                [
                    'y' => 134,
                    'color' => '#D6251F',
                ],
                [
                    'y' => 100,
                    'color' => '#26ABDB',
                ],
                [
                    'y' => 10,
                    'color' => '#33BDA4',
                ],
                [
                    'y' => 50,
                    'color' => '#51078D',
                ],
            ],
        ],
    ]
]]);