Don't attempt to render the internal chart until a type has been set
This commit is contained in:
parent
e41cfcd58e
commit
72028b57ec
|
@ -64,34 +64,36 @@
|
||||||
limit,
|
limit,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BlockComponent
|
{#if dataProviderId && chartType}
|
||||||
type={chartType}
|
<BlockComponent
|
||||||
props={{
|
type={chartType}
|
||||||
dataProvider: `{{ literal ${safe(dataProviderId)} }}`,
|
props={{
|
||||||
height,
|
dataProvider: `{{ literal ${safe(dataProviderId)} }}`,
|
||||||
width,
|
height,
|
||||||
title: chartTitle,
|
width,
|
||||||
labelColumn,
|
title: chartTitle,
|
||||||
valueColumn,
|
labelColumn,
|
||||||
valueColumns,
|
valueColumn,
|
||||||
palette,
|
valueColumns,
|
||||||
dataLabels,
|
palette,
|
||||||
legend,
|
dataLabels,
|
||||||
animate,
|
legend,
|
||||||
...colors,
|
animate,
|
||||||
yAxisUnits,
|
...colors,
|
||||||
yAxisLabel,
|
yAxisUnits,
|
||||||
xAxisLabel,
|
yAxisLabel,
|
||||||
stacked,
|
xAxisLabel,
|
||||||
horizontal,
|
stacked,
|
||||||
curve,
|
horizontal,
|
||||||
gradient, //issue?
|
curve,
|
||||||
closeColumn,
|
gradient, //issue?
|
||||||
openColumn,
|
closeColumn,
|
||||||
highColumn,
|
openColumn,
|
||||||
lowColumn,
|
highColumn,
|
||||||
dateColumn,
|
lowColumn,
|
||||||
}}
|
dateColumn,
|
||||||
/>
|
}}
|
||||||
|
/>
|
||||||
|
{/if}
|
||||||
</BlockComponent>
|
</BlockComponent>
|
||||||
</Block>
|
</Block>
|
||||||
|
|
Loading…
Reference in New Issue