diff --git a/src/Facades/LivewireCharts.php b/src/Facades/LivewireCharts.php new file mode 100644 index 0000000..6ea734e --- /dev/null +++ b/src/Facades/LivewireCharts.php @@ -0,0 +1,27 @@ +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; + } +} diff --git a/src/LivewireChartsServiceProvider.php b/src/LivewireChartsServiceProvider.php index a2f3fbd..e35d711 100755 --- a/src/LivewireChartsServiceProvider.php +++ b/src/LivewireChartsServiceProvider.php @@ -35,6 +35,6 @@ class LivewireChartsServiceProvider extends ServiceProvider */ public function register() { - // + $this->app->bind('livewirecharts', LivewireCharts::class); } }