remove hide var from apexchart component
This commit is contained in:
parent
a95941b1e2
commit
60f6553340
|
@ -47,16 +47,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$: noData = optionsCopy == null || optionsCopy?.series?.length === 0
|
$: noData = optionsCopy == null || optionsCopy?.series?.length === 0
|
||||||
$: hide = noData
|
|
||||||
|
|
||||||
// Call render chart upon changes to hide, as apex charts has issues with rendering upon changes automatically
|
// Call render chart upon changes to noData, as apex charts has issues with rendering upon changes automatically
|
||||||
// if the chart is hidden.
|
// if the chart is hidden.
|
||||||
$: renderChart(chartElement, hide)
|
$: renderChart(chartElement, noData)
|
||||||
$: updateChart(optionsCopy)
|
$: updateChart(optionsCopy)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#key optionsCopy?.customColor}
|
{#key optionsCopy?.customColor}
|
||||||
<div class:hide use:styleable={$component.styles} bind:this={chartElement} />
|
<div class:hide={noData} use:styleable={$component.styles} bind:this={chartElement} />
|
||||||
{#if $builderStore.inBuilder && noData}
|
{#if $builderStore.inBuilder && noData}
|
||||||
<div
|
<div
|
||||||
class="component-placeholder"
|
class="component-placeholder"
|
||||||
|
|
Loading…
Reference in New Issue