diff --git a/resources/views/livewire/area-chart.blade.php b/resources/views/livewire/area-chart.blade.php index a0f76d6..a50bd0a 100644 --- a/resources/views/livewire/area-chart.blade.php +++ b/resources/views/livewire/area-chart.blade.php @@ -29,6 +29,10 @@ function drawChart{{ $chartId }}() { {!! $action !!} @endforeach + @foreach($events as $event) + {!! $event !!} + @endforeach + chart.draw(data, options); @if($printable) diff --git a/resources/views/livewire/bar-chart.blade.php b/resources/views/livewire/bar-chart.blade.php index 46117cc..866f032 100644 --- a/resources/views/livewire/bar-chart.blade.php +++ b/resources/views/livewire/bar-chart.blade.php @@ -29,6 +29,10 @@ function drawChart{{ $chartId }}() { {!! $action !!} @endforeach + @foreach($events as $event) + {!! $event !!} + @endforeach + chart.draw(data, options); @if($printable) diff --git a/resources/views/livewire/candlestick-chart.blade.php b/resources/views/livewire/candlestick-chart.blade.php index f1fa988..a4da5db 100644 --- a/resources/views/livewire/candlestick-chart.blade.php +++ b/resources/views/livewire/candlestick-chart.blade.php @@ -29,6 +29,10 @@ function drawChart{{ $chartId }}() { {!! $action !!} @endforeach + @foreach($events as $event) + {!! $event !!} + @endforeach + chart.draw(data, options); @if($printable) diff --git a/resources/views/livewire/column-chart.blade.php b/resources/views/livewire/column-chart.blade.php index 241e2bd..299930e 100644 --- a/resources/views/livewire/column-chart.blade.php +++ b/resources/views/livewire/column-chart.blade.php @@ -29,6 +29,10 @@ function drawChart{{ $chartId }}() { {!! $action !!} @endforeach + @foreach($events as $event) + {!! $event !!} + @endforeach + chart.draw(data, options); @if($printable) diff --git a/resources/views/livewire/line-chart.blade.php b/resources/views/livewire/line-chart.blade.php index bd3b1a1..efcc717 100644 --- a/resources/views/livewire/line-chart.blade.php +++ b/resources/views/livewire/line-chart.blade.php @@ -29,6 +29,10 @@ function drawChart{{ $chartId }}() { {!! $action !!} @endforeach + @foreach($events as $event) + {!! $event !!} + @endforeach + chart.draw(data, options); @if($printable) diff --git a/resources/views/livewire/pie-chart.blade.php b/resources/views/livewire/pie-chart.blade.php index 0e3f4c6..1f378a1 100644 --- a/resources/views/livewire/pie-chart.blade.php +++ b/resources/views/livewire/pie-chart.blade.php @@ -37,6 +37,10 @@ function drawChart{{ $chartId }}() { {!! $action !!} @endforeach + @foreach($events as $event) + {!! $event !!} + @endforeach + chart.draw(data, options); @if($printable) diff --git a/resources/views/livewire/waterfall-chart.blade.php b/resources/views/livewire/waterfall-chart.blade.php index b426516..782e4d2 100644 --- a/resources/views/livewire/waterfall-chart.blade.php +++ b/resources/views/livewire/waterfall-chart.blade.php @@ -29,6 +29,10 @@ function drawChart{{ $chartId }}() { {!! $action !!} @endforeach + @foreach($events as $event) + {!! $event !!} + @endforeach + chart.draw(data, options); @if($printable) diff --git a/src/Http/Livewire/AreaChart.php b/src/Http/Livewire/AreaChart.php index e29f0fd..e07e7db 100644 --- a/src/Http/Livewire/AreaChart.php +++ b/src/Http/Livewire/AreaChart.php @@ -24,6 +24,7 @@ class AreaChart extends Component public $optionsArray; public $actions; + public $events; public $printable = false; @@ -31,6 +32,9 @@ public function mount(){ if(is_null($this->actions) || !is_array($this->actions)){ $this->actions = []; } + if(is_null($this->events) || !is_array($this->events)){ + $this->events = []; + } $newOptions = [ 'title' => $this->title, diff --git a/src/Http/Livewire/BarChart.php b/src/Http/Livewire/BarChart.php index 049c45c..f38c8e1 100644 --- a/src/Http/Livewire/BarChart.php +++ b/src/Http/Livewire/BarChart.php @@ -24,6 +24,7 @@ class BarChart extends Component public $optionsArray; public $actions; + public $events; public $printable = false; @@ -31,6 +32,9 @@ public function mount(){ if(is_null($this->actions) || !is_array($this->actions)){ $this->actions = []; } + if(is_null($this->events) || !is_array($this->events)){ + $this->events = []; + } $newOptions = [ 'title' => $this->title, diff --git a/src/Http/Livewire/CandlestickChart.php b/src/Http/Livewire/CandlestickChart.php index 69de396..a864500 100644 --- a/src/Http/Livewire/CandlestickChart.php +++ b/src/Http/Livewire/CandlestickChart.php @@ -21,6 +21,7 @@ class CandlestickChart extends Component public $optionsArray; public $actions; + public $events; public $printable = false; @@ -28,6 +29,9 @@ public function mount(){ if(is_null($this->actions) || !is_array($this->actions)){ $this->actions = []; } + if(is_null($this->events) || !is_array($this->events)){ + $this->events = []; + } $newOptions = [ 'title' => $this->title, diff --git a/src/Http/Livewire/ColumnChart.php b/src/Http/Livewire/ColumnChart.php index 60044fc..4ed6bd2 100644 --- a/src/Http/Livewire/ColumnChart.php +++ b/src/Http/Livewire/ColumnChart.php @@ -24,6 +24,7 @@ class ColumnChart extends Component public $optionsArray; public $actions; + public $events; public $printable = false; @@ -31,6 +32,9 @@ public function mount(){ if(is_null($this->actions) || !is_array($this->actions)){ $this->actions = []; } + if(is_null($this->events) || !is_array($this->events)){ + $this->events = []; + } $newOptions = [ 'title' => $this->title, diff --git a/src/Http/Livewire/LineChart.php b/src/Http/Livewire/LineChart.php index 066c5a8..adc3340 100644 --- a/src/Http/Livewire/LineChart.php +++ b/src/Http/Livewire/LineChart.php @@ -21,6 +21,7 @@ class LineChart extends Component public $optionsArray; public $actions; + public $events; public $printable = false; @@ -28,6 +29,9 @@ public function mount(){ if(is_null($this->actions) || !is_array($this->actions)){ $this->actions = []; } + if(is_null($this->events) || !is_array($this->events)){ + $this->events = []; + } $newOptions = [ 'title' => $this->title, diff --git a/src/Http/Livewire/PieChart.php b/src/Http/Livewire/PieChart.php index 6c264f6..5414702 100644 --- a/src/Http/Livewire/PieChart.php +++ b/src/Http/Livewire/PieChart.php @@ -24,6 +24,7 @@ class PieChart extends Component public $optionsArray; public $actions; + public $events; public $printable = false; @@ -31,6 +32,9 @@ public function mount(){ if(is_null($this->actions) || !is_array($this->actions)){ $this->actions = []; } + if(is_null($this->events) || !is_array($this->events)){ + $this->events = []; + } $newOptions = [ 'title' => $this->title, diff --git a/src/Http/Livewire/WaterfallChart.php b/src/Http/Livewire/WaterfallChart.php index a98a6b4..565692d 100644 --- a/src/Http/Livewire/WaterfallChart.php +++ b/src/Http/Livewire/WaterfallChart.php @@ -21,6 +21,7 @@ class WaterfallChart extends Component public $optionsArray; public $actions; + public $events; public $printable = false; @@ -28,6 +29,9 @@ public function mount(){ if(is_null($this->actions) || !is_array($this->actions)){ $this->actions = []; } + if(is_null($this->events) || !is_array($this->events)){ + $this->events = []; + } $newOptions = [ 'title' => $this->title,