Added LivewireCharts facade
This commit is contained in:
47
src/LivewireCharts.php
Normal file
47
src/LivewireCharts.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Asantibanez\LivewireCharts;
|
||||
|
||||
|
||||
use Asantibanez\LivewireCharts\Models\AreaChartModel;
|
||||
use Asantibanez\LivewireCharts\Models\ColumnChartModel;
|
||||
use Asantibanez\LivewireCharts\Models\LineChartModel;
|
||||
use Asantibanez\LivewireCharts\Models\PieChartModel;
|
||||
|
||||
class LivewireCharts
|
||||
{
|
||||
public function lineChartModel()
|
||||
{
|
||||
return (new LineChartModel)
|
||||
->singleLine();
|
||||
}
|
||||
|
||||
public function multiLineChartModel()
|
||||
{
|
||||
return (new LineChartModel)
|
||||
->multiLine();
|
||||
}
|
||||
|
||||
public function columnChartModel()
|
||||
{
|
||||
return (new ColumnChartModel)
|
||||
->singleColumn();
|
||||
}
|
||||
|
||||
public function multiColumnChartModel()
|
||||
{
|
||||
return (new ColumnChartModel)
|
||||
->multiColumn();
|
||||
}
|
||||
|
||||
public function areaChartModel()
|
||||
{
|
||||
return new AreaChartModel;
|
||||
}
|
||||
|
||||
public function pieChartModel()
|
||||
{
|
||||
return new PieChartModel;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user