Removed unnecessary block configuration elements
This commit is contained in:
parent
3086e87f0e
commit
f0881dff48
|
@ -1,8 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { getContext } from "svelte"
|
|
||||||
import Block from "components/Block.svelte"
|
import Block from "components/Block.svelte"
|
||||||
import BlockComponent from "components/BlockComponent.svelte"
|
import BlockComponent from "components/BlockComponent.svelte"
|
||||||
import Placeholder from "components/app/Placeholder.svelte"
|
|
||||||
import { makePropSafe as safe } from "@budibase/string-templates"
|
import { makePropSafe as safe } from "@budibase/string-templates"
|
||||||
|
|
||||||
// Datasource
|
// Datasource
|
||||||
|
@ -48,8 +46,6 @@
|
||||||
export let lowColumn
|
export let lowColumn
|
||||||
export let dateColumn
|
export let dateColumn
|
||||||
|
|
||||||
const component = getContext("component")
|
|
||||||
|
|
||||||
let dataProviderId
|
let dataProviderId
|
||||||
|
|
||||||
$: colors = c1 && c2 && c3 && c4 && c5 ? [c1, c2, c3, c4, c5] : null
|
$: colors = c1 && c2 && c3 && c4 && c5 ? [c1, c2, c3, c4, c5] : null
|
||||||
|
@ -67,41 +63,35 @@
|
||||||
sortOrder,
|
sortOrder,
|
||||||
limit,
|
limit,
|
||||||
}}
|
}}
|
||||||
order={0}
|
|
||||||
>
|
>
|
||||||
{#if $component.empty}
|
<BlockComponent
|
||||||
<Placeholder />
|
type={chartType}
|
||||||
{:else}
|
props={{
|
||||||
<BlockComponent
|
dataProvider: `{{ literal ${safe(dataProviderId)} }}`,
|
||||||
type={chartType}
|
height,
|
||||||
props={{
|
width,
|
||||||
dataProvider: `{{ literal ${safe(dataProviderId)} }}`,
|
title: chartTitle,
|
||||||
height,
|
labelColumn,
|
||||||
width,
|
valueColumn,
|
||||||
title: chartTitle,
|
valueColumns,
|
||||||
labelColumn,
|
palette,
|
||||||
valueColumn,
|
dataLabels,
|
||||||
valueColumns,
|
legend,
|
||||||
palette,
|
animate,
|
||||||
dataLabels,
|
...colors,
|
||||||
legend,
|
yAxisUnits,
|
||||||
animate,
|
yAxisLabel,
|
||||||
...colors,
|
xAxisLabel,
|
||||||
yAxisUnits,
|
stacked,
|
||||||
yAxisLabel,
|
horizontal,
|
||||||
xAxisLabel,
|
curve,
|
||||||
stacked,
|
gradient, //issue?
|
||||||
horizontal,
|
closeColumn,
|
||||||
curve,
|
openColumn,
|
||||||
gradient, //issue?
|
highColumn,
|
||||||
closeColumn,
|
lowColumn,
|
||||||
openColumn,
|
dateColumn,
|
||||||
highColumn,
|
}}
|
||||||
lowColumn,
|
/>
|
||||||
dateColumn,
|
|
||||||
}}
|
|
||||||
order={1}
|
|
||||||
/>
|
|
||||||
{/if}
|
|
||||||
</BlockComponent>
|
</BlockComponent>
|
||||||
</Block>
|
</Block>
|
||||||
|
|
Loading…
Reference in New Issue