Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0457a9a007 | ||
|
|
2c7317c3b8 | ||
|
|
98df89eca4 |
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 1.5.1 - 2020-11-09
|
||||
|
||||
- Removed unused Alpine directives
|
||||
|
||||
## 1.5.0 - 2020-11-09
|
||||
|
||||
- Added `LivewireCharts` facade to create any chart model
|
||||
|
||||
13
README.md
13
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
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
class="w-full h-full"
|
||||
x-data="{ ...areaChart() }"
|
||||
x-init="drawChart(@this)"
|
||||
x-on:draw-column-chart.window="drawChart(@this)"
|
||||
>
|
||||
<div wire:ignore x-ref="container"></div>
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
class="w-full h-full"
|
||||
x-data="{ ...columnChart() }"
|
||||
x-init="drawChart(@this)"
|
||||
x-on:draw-column-chart.window="drawChart(@this)"
|
||||
>
|
||||
<div wire:ignore x-ref="container"></div>
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
class="w-full h-full"
|
||||
x-data="{ ...multiColumnChart() }"
|
||||
x-init="drawChart(@this)"
|
||||
x-on:draw-column-chart.window="drawChart(@this)"
|
||||
>
|
||||
<div wire:ignore x-ref="container"></div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user