first commit

This commit is contained in:
Simon Pocrnjič
2024-10-28 21:08:16 +01:00
commit 90a5858320
199 changed files with 21177 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Charts;
use ArielMejiaDev\LarapexCharts\LarapexChart;
class ExampleChart
{
protected $chart;
public function __construct(LarapexChart $chart)
{
$this->chart = $chart;
}
public function build($options = null)
{
return $this->chart->areaChart()
->setTitle('Contracts during last six months.')
->setSubtitle('New and Completed.')
->addData('New', [4, 9, 5, 2, 1, 8])
->addData('Completed', [7, 2, 7, 2, 5, 4])
->setColors(['#1A56DB', '#ff6384'])
->setXAxis(['January', 'February', 'March', 'April', 'May', 'June'])
->setToolbar(true)
->toVue();
}
}