1. Go to this page and download the library: Download elqora/chart 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/ */
use Elqora\Chart\Charts\Chart;
use Elqora\Chart\Data\TabularData;
use Elqora\Chart\Enums\ChartType;
use Elqora\Chart\Enums\ValueType;
use Elqora\Chart\Series\Series;
$chart = new Chart(
key: 'delivery.throughput',
type: ChartType::LINE,
title: 'Delivery throughput',
data: new TabularData(
categoryField: 'time',
rows: [
['time' => '10:00', 'delivered' => 0],
['time' => '10:30', 'delivered' => 500],
],
series: [
new Series(
key: 'delivered',
label: 'Delivered',
field: 'delivered',
valueType: ValueType::INTEGER,
),
],
),
);
use Elqora\Chart\Charts\Chart;
use Elqora\Chart\Data\HierarchyData;
use Elqora\Chart\Enums\ChartType;
use Elqora\Chart\Hierarchy\HierarchyNode;
$chart = new Chart(
key: 'service.mix',
type: ChartType::TREEMAP,
title: 'Service mix',
data: new HierarchyData([
new HierarchyNode('root', 'All services', children: [
new HierarchyNode('email', 'Email', 120),
new HierarchyNode('sms', 'SMS', 75),
]),
]),
);
use Elqora\Chart\Charts\Chart;
use Elqora\Chart\Data\CandlestickData;
use Elqora\Chart\Data\CandlestickPoint;
use Elqora\Chart\Enums\ChartType;
$chart = new Chart(
key: 'market.ohlc',
type: ChartType::CANDLESTICK,
title: 'Market OHLC',
data: new CandlestickData([
new CandlestickPoint('2026-07-08', open: 100, high: 110, low: 95, close: 105, volume: 1000),
]),
);