@props(['chartId', 'chartOptions', 'contentHeight', 'pollingInterval', 'loadingIndicator', 'deferLoading', 'readyToLoad', 'darkMode'])
@if ($readyToLoad)
{
this.chart.updateOptions(options, false, true, true);
});
this.options.theme = { mode: this.theme };
this.options.chart.background = 'inherit';
this.chart = new ApexCharts($refs.{{ $chartId }}, this.options);
this.chart.render();
}
}"
@dark-mode-toggled.window="chart.updateOptions( { theme: { mode: {{ $darkMode ? '$event.detail' : "'light'" }} } } )"
x-init="$watch('dropdownOpen', value => $wire.dropdownOpen = value)">
@else
@if ($loadingIndicator)
{!! $loadingIndicator !!}
@else
@endif
@endif