4 Commits
1.5.0 ... 1.5.2

Author SHA1 Message Date
Andrés Santibáñez
940109ef03 Fixed infinite growing charts 2020-11-09 10:53:42 -05:00
Andrés Santibáñez
0457a9a007 Updated CHANGELOG 2020-11-09 10:18:23 -05:00
Andrés Santibáñez
2c7317c3b8 Removed unused directives 2020-11-09 10:17:29 -05:00
Andrés Santibáñez
98df89eca4 Updated README 2020-11-09 08:49:16 -05:00
8 changed files with 27 additions and 9 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## 1.5.2 - 2020-11-09
- Fixed infinite growing charts
## 1.5.1 - 2020-11-09
- Removed unused Alpine directives
## 1.5.0 - 2020-11-09
- Added `LivewireCharts` facade to create any chart model

View File

@@ -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

View File

@@ -1,8 +1,7 @@
<div
class="w-full h-full"
style="width: 100%; height: 100%;"
x-data="{ ...areaChart() }"
x-init="drawChart(@this)"
x-on:draw-column-chart.window="drawChart(@this)"
>
<div wire:ignore x-ref="container"></div>

View File

@@ -1,8 +1,7 @@
<div
class="w-full h-full"
style="width: 100%; height: 100%;"
x-data="{ ...columnChart() }"
x-init="drawChart(@this)"
x-on:draw-column-chart.window="drawChart(@this)"
>
<div wire:ignore x-ref="container"></div>

View File

@@ -1,5 +1,5 @@
<div
class="w-full h-full"
style="width: 100%; height: 100%;"
x-data="{ ...lineChart() }"
x-init="drawChart(@this)"
>

View File

@@ -1,8 +1,7 @@
<div
class="w-full h-full"
style="width: 100%; height: 100%;"
x-data="{ ...multiColumnChart() }"
x-init="drawChart(@this)"
x-on:draw-column-chart.window="drawChart(@this)"
>
<div wire:ignore x-ref="container"></div>

View File

@@ -1,5 +1,5 @@
<div
class="w-full h-full"
style="width: 100%; height: 100%;"
x-data="{ ...multiLineChart() }"
x-init="drawChart(@this)"
>

View File

@@ -1,5 +1,5 @@
<div
class="w-full h-full"
style="width: 100%; height: 100%;"
x-data="{ ...pieChart() }"
x-init="drawChart(@this)"
>