diff --git a/src/routes/etf/[tickerID]/+page.svelte b/src/routes/etf/[tickerID]/+page.svelte index f24882fc..84cd6d22 100644 --- a/src/routes/etf/[tickerID]/+page.svelte +++ b/src/routes/etf/[tickerID]/+page.svelte @@ -716,7 +716,7 @@
  • @@ -747,7 +714,7 @@
  • @@ -781,129 +748,8 @@ - {#if output !== null && dataMapping[displayData]?.length !== 0} - (chart = api)} - > - {#if displayData === "1D"} - ({ - time, - value: close, - }))} - lineWidth={1.5} - priceScaleId="right" - lineColor={colorChange} - topColor={topColorChange} - bottomColor={bottomColorChange} - priceLineVisible={false} - > - - - {:else if displayData === "1W"} - ({ - time, - value: close, - }))} - lineWidth={1.5} - priceScaleId="right" - lineColor={colorChange} - topColor={topColorChange} - bottomColor={bottomColorChange} - priceLineVisible={false} - > - - - {:else if displayData === "1M"} - ({ - time: time, - value: close, - }))} - lineWidth={1.5} - priceScaleId="right" - lineColor={colorChange} - topColor={topColorChange} - bottomColor={bottomColorChange} - priceLineVisible={false} - > - - - {:else if displayData === "6M"} - ({ - time, - value: close, - }))} - lineWidth={1.5} - priceScaleId="right" - lineColor={colorChange} - topColor={topColorChange} - bottomColor={bottomColorChange} - priceLineVisible={false} - > - - - {:else if displayData === "1Y"} - ({ - time, - value: close, - }))} - lineWidth={1.5} - priceScaleId="right" - lineColor={colorChange} - topColor={topColorChange} - bottomColor={bottomColorChange} - priceLineVisible={false} - > - - - {:else if displayData === "MAX"} - ({ - time, - value: close, - }))} - lineWidth={1.5} - priceScaleId="right" - lineColor={colorChange} - topColor={topColorChange} - bottomColor={bottomColorChange} - priceLineVisible={false} - > - - - {/if} - + {#if output !== null && config !== null && dataMapping[displayData]?.length !== 0} +
    {:else}