{#if $showCharts} {#if chart.type === "barchart"} {/if} {#if chart.type === "linechart"} {/if} {#if chart.type === "hierarchy" && $hierarchyChartMode === "treemap" && chart.treemap_currency} {/if} {#if chart.type === "hierarchy"} {:else if chart.type === "linechart"} {:else if chart.type === "barchart" && chart.hasStackedData} {/if} {:else}{/if} {@render children?.()}