From c04652b9ea20a948194067bfafe94c3e4ba4fb34 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Wed, 5 Mar 2025 11:20:05 +0100 Subject: [PATCH] ui fix --- src/routes/etf/[tickerID]/+page.svelte | 2 +- src/routes/index/[tickerID]/+page.svelte | 770 +++++++++-------------- 2 files changed, 309 insertions(+), 463 deletions(-) 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}