PHP code example of phperf / highcharts

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

    

phperf / highcharts example snippets


$hc = new HighCharts();
$hc->addOption('legend', 'enabled', false);
$hc->setTitle($name);
$hc->addOption('plotOptions', 'series', 'point', 'mouseOver', <<<JS
function(){console.log(this.x, this.y)}
JS

$hc->addRow(1, 1);
$hc->addRow(2, 2);
$hc->addRow(3, 3);

$hc->render();