From 98df89eca4aaa9e655501dd86d7b2e8f6916daa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Santib=C3=A1=C3=B1ez?= Date: Mon, 9 Nov 2020 08:49:16 -0500 Subject: [PATCH] Updated README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 79add45..880056e 100755 --- a/README.md +++ b/README.md @@ -71,6 +71,19 @@ And that's it! You have a beautiful rendered chart in seconds. 👌 >Note: You can use these charts inside other Livewire components too. Just render them in your Blade template and you are good to go. 👍 +## LivewireCharts facade + +Chart models can also be created using the `LivewireCharts` facade. + +```php +LivewireCharts::lineChartModel(); +LivewireCharts::multiLineChartModel(); +LivewireCharts::columnChartModel(); +LivewireCharts::multiColumnChartModel(); +LivewireCharts::pieChartModel(); +LivewireCharts::areaChartModel(); +``` + ## Enabling Interactions To enable click events, you must use the `with[XXX]ClickEvent($eventName)` method present in every model class and