Skip to content

Commit

Permalink
Added events to corecharts
Browse files Browse the repository at this point in the history
  • Loading branch information
daredloco committed Dec 23, 2022
1 parent 677b3ef commit 5ab3673
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/views/livewire/area-chart.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function drawChart{{ $chartId }}() {
{!! $action !!}
@endforeach
@foreach($events as $event)
{!! $event !!}
@endforeach
chart.draw(data, options);
@if($printable)
Expand Down
4 changes: 4 additions & 0 deletions resources/views/livewire/bar-chart.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function drawChart{{ $chartId }}() {
{!! $action !!}
@endforeach
@foreach($events as $event)
{!! $event !!}
@endforeach
chart.draw(data, options);
@if($printable)
Expand Down
4 changes: 4 additions & 0 deletions resources/views/livewire/candlestick-chart.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function drawChart{{ $chartId }}() {
{!! $action !!}
@endforeach
@foreach($events as $event)
{!! $event !!}
@endforeach
chart.draw(data, options);
@if($printable)
Expand Down
4 changes: 4 additions & 0 deletions resources/views/livewire/column-chart.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function drawChart{{ $chartId }}() {
{!! $action !!}
@endforeach
@foreach($events as $event)
{!! $event !!}
@endforeach
chart.draw(data, options);
@if($printable)
Expand Down
4 changes: 4 additions & 0 deletions resources/views/livewire/line-chart.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function drawChart{{ $chartId }}() {
{!! $action !!}
@endforeach
@foreach($events as $event)
{!! $event !!}
@endforeach
chart.draw(data, options);
@if($printable)
Expand Down
4 changes: 4 additions & 0 deletions resources/views/livewire/pie-chart.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ function drawChart{{ $chartId }}() {
{!! $action !!}
@endforeach
@foreach($events as $event)
{!! $event !!}
@endforeach
chart.draw(data, options);
@if($printable)
Expand Down
4 changes: 4 additions & 0 deletions resources/views/livewire/waterfall-chart.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function drawChart{{ $chartId }}() {
{!! $action !!}
@endforeach
@foreach($events as $event)
{!! $event !!}
@endforeach
chart.draw(data, options);
@if($printable)
Expand Down
4 changes: 4 additions & 0 deletions src/Http/Livewire/AreaChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ class AreaChart extends Component
public $optionsArray;

public $actions;
public $events;

public $printable = false;

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,
Expand Down
4 changes: 4 additions & 0 deletions src/Http/Livewire/BarChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ class BarChart extends Component
public $optionsArray;

public $actions;
public $events;

public $printable = false;

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,
Expand Down
4 changes: 4 additions & 0 deletions src/Http/Livewire/CandlestickChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ class CandlestickChart extends Component
public $optionsArray;

public $actions;
public $events;

public $printable = false;

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,
Expand Down
4 changes: 4 additions & 0 deletions src/Http/Livewire/ColumnChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ class ColumnChart extends Component
public $optionsArray;

public $actions;
public $events;

public $printable = false;

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,
Expand Down
4 changes: 4 additions & 0 deletions src/Http/Livewire/LineChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ class LineChart extends Component
public $optionsArray;

public $actions;
public $events;

public $printable = false;

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,
Expand Down
4 changes: 4 additions & 0 deletions src/Http/Livewire/PieChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ class PieChart extends Component
public $optionsArray;

public $actions;
public $events;

public $printable = false;

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,
Expand Down
4 changes: 4 additions & 0 deletions src/Http/Livewire/WaterfallChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ class WaterfallChart extends Component
public $optionsArray;

public $actions;
public $events;

public $printable = false;

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,
Expand Down

0 comments on commit 5ab3673

Please sign in to comment.