-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbar-chart.php
More file actions
30 lines (26 loc) · 605 Bytes
/
bar-chart.php
File metadata and controls
30 lines (26 loc) · 605 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
require '../vendor/autoload.php';
use Maantje\Charts\Bar\Bar;
use Maantje\Charts\Bar\Bars;
use Maantje\Charts\Chart;
$chart = new Chart(
series: [
new Bars(
bars: [
new Bar(
name: 'January',
value: 222301,
),
new Bar(
name: 'February',
value: 189242,
),
new Bar(
name: 'March',
value: 144922,
),
],
),
],
);
echo $chart->render();