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,
|
||||
}}
|
||||
>
|
||||
<BlockComponent
|
||||
type={chartType}
|
||||
props={{
|
||||
dataProvider: `{{ literal ${safe(dataProviderId)} }}`,
|
||||
height,
|
||||
width,
|
||||
title: chartTitle,
|
||||
labelColumn,
|
||||
valueColumn,
|
||||
valueColumns,
|
||||
palette,
|
||||
dataLabels,
|
||||
legend,
|
||||
animate,
|
||||
...colors,
|
||||
yAxisUnits,
|
||||
yAxisLabel,
|
||||
xAxisLabel,
|
||||
stacked,
|
||||
horizontal,
|
||||
curve,
|
||||
gradient, //issue?
|
||||
closeColumn,
|
||||
openColumn,
|
||||
highColumn,
|
||||
lowColumn,
|
||||
dateColumn,
|
||||
}}
|
||||
/>
|
||||
{#if dataProviderId && chartType}
|
||||
<BlockComponent
|
||||
type={chartType}
|
||||
props={{
|
||||
dataProvider: `{{ literal ${safe(dataProviderId)} }}`,
|
||||
height,
|
||||
width,
|
||||
title: chartTitle,
|
||||
labelColumn,
|
||||
valueColumn,
|
||||
valueColumns,
|
||||
palette,
|
||||
dataLabels,
|
||||
legend,
|
||||
animate,
|
||||
...colors,
|
||||
yAxisUnits,
|
||||
yAxisLabel,
|
||||
xAxisLabel,
|
||||
stacked,
|
||||
horizontal,
|
||||
curve,
|
||||
gradient, //issue?
|
||||
closeColumn,
|
||||
openColumn,
|
||||
highColumn,
|
||||
lowColumn,
|
||||
dateColumn,
|
||||
}}
|
||||
/>
|
||||
{/if}
|
||||
</BlockComponent>
|
||||
</Block>
|
||||
|
|
Loading…
Reference in New Issue