Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
940109ef03 | ||
|
|
0457a9a007 | ||
|
|
2c7317c3b8 | ||
|
|
98df89eca4 |
@@ -1,5 +1,13 @@
|
|||||||
# Changelog
|
# 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
|
## 1.5.0 - 2020-11-09
|
||||||
|
|
||||||
- Added `LivewireCharts` facade to create any chart model
|
- 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
|
>Note: You can use these charts inside other Livewire components too. Just render them in your Blade template and you
|
||||||
are good to go. 👍
|
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
|
## Enabling Interactions
|
||||||
|
|
||||||
To enable click events, you must use the `with[XXX]ClickEvent($eventName)` method present in every model class and
|
To enable click events, you must use the `with[XXX]ClickEvent($eventName)` method present in every model class and
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<div
|
<div
|
||||||
class="w-full h-full"
|
style="width: 100%; height: 100%;"
|
||||||
x-data="{ ...areaChart() }"
|
x-data="{ ...areaChart() }"
|
||||||
x-init="drawChart(@this)"
|
x-init="drawChart(@this)"
|
||||||
x-on:draw-column-chart.window="drawChart(@this)"
|
|
||||||
>
|
>
|
||||||
<div wire:ignore x-ref="container"></div>
|
<div wire:ignore x-ref="container"></div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<div
|
<div
|
||||||
class="w-full h-full"
|
style="width: 100%; height: 100%;"
|
||||||
x-data="{ ...columnChart() }"
|
x-data="{ ...columnChart() }"
|
||||||
x-init="drawChart(@this)"
|
x-init="drawChart(@this)"
|
||||||
x-on:draw-column-chart.window="drawChart(@this)"
|
|
||||||
>
|
>
|
||||||
<div wire:ignore x-ref="container"></div>
|
<div wire:ignore x-ref="container"></div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div
|
<div
|
||||||
class="w-full h-full"
|
style="width: 100%; height: 100%;"
|
||||||
x-data="{ ...lineChart() }"
|
x-data="{ ...lineChart() }"
|
||||||
x-init="drawChart(@this)"
|
x-init="drawChart(@this)"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<div
|
<div
|
||||||
class="w-full h-full"
|
style="width: 100%; height: 100%;"
|
||||||
x-data="{ ...multiColumnChart() }"
|
x-data="{ ...multiColumnChart() }"
|
||||||
x-init="drawChart(@this)"
|
x-init="drawChart(@this)"
|
||||||
x-on:draw-column-chart.window="drawChart(@this)"
|
|
||||||
>
|
>
|
||||||
<div wire:ignore x-ref="container"></div>
|
<div wire:ignore x-ref="container"></div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div
|
<div
|
||||||
class="w-full h-full"
|
style="width: 100%; height: 100%;"
|
||||||
x-data="{ ...multiLineChart() }"
|
x-data="{ ...multiLineChart() }"
|
||||||
x-init="drawChart(@this)"
|
x-init="drawChart(@this)"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div
|
<div
|
||||||
class="w-full h-full"
|
style="width: 100%; height: 100%;"
|
||||||
x-data="{ ...pieChart() }"
|
x-data="{ ...pieChart() }"
|
||||||
x-init="drawChart(@this)"
|
x-init="drawChart(@this)"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user