+
-
-
- {:else if displayData === "6M"}
-
({
- time,
- value: close,
- }))}
- lineWidth={1.5}
- priceScaleId="right"
- lineColor={colorChange}
- topColor={topColorChange}
- bottomColor={bottomColorChange}
- ref={handleSeriesReference}
- priceLineVisible={false}
+
+
+ 0.80% (1D)
+
+
+
(chart = api)}
+ on:crosshairMove={handleCrosshairMove}
>
-
-
- {:else if displayData === "1Y"}
- ({
- time,
- value: close,
- }))}
- lineWidth={1.5}
- priceScaleId="right"
- lineColor={colorChange}
- topColor={topColorChange}
- bottomColor={bottomColorChange}
- ref={handleSeriesReference}
- priceLineVisible={false}
- >
-
-
- {:else if displayData === "MAX"}
- ({
- time,
- value: close,
- }))}
- lineWidth={1.5}
- priceScaleId="right"
- lineColor={colorChange}
- topColor={topColorChange}
- bottomColor={bottomColorChange}
- ref={handleSeriesReference}
- priceLineVisible={false}
- >
-
-
- {/if}
-
+ {#if displayData === "1D"}
+
({
+ time,
+ value: close,
+ }))}
+ lineWidth={1.5}
+ priceScaleId="right"
+ lineColor={colorChange}
+ topColor={topColorChange}
+ bottomColor={bottomColorChange}
+ ref={handleSeriesReference}
+ priceLineVisible={false}
+ >
+
+
+ {:else if displayData === "1W"}
+
({
+ time,
+ value: close,
+ }))}
+ lineWidth={1.5}
+ priceScaleId="right"
+ lineColor={colorChange}
+ topColor={topColorChange}
+ bottomColor={bottomColorChange}
+ ref={handleSeriesReference}
+ priceLineVisible={false}
+ >
+
+
+ {:else if displayData === "1M"}
+
({
+ time: time,
+ value: close,
+ }))}
+ lineWidth={1.5}
+ priceScaleId="right"
+ lineColor={colorChange}
+ topColor={topColorChange}
+ bottomColor={bottomColorChange}
+ ref={handleSeriesReference}
+ priceLineVisible={false}
+ >
+
+
+ {:else if displayData === "6M"}
+
({
+ time,
+ value: close,
+ }))}
+ lineWidth={1.5}
+ priceScaleId="right"
+ lineColor={colorChange}
+ topColor={topColorChange}
+ bottomColor={bottomColorChange}
+ ref={handleSeriesReference}
+ priceLineVisible={false}
+ >
+
+
+ {:else if displayData === "1Y"}
+
({
+ time,
+ value: close,
+ }))}
+ lineWidth={1.5}
+ priceScaleId="right"
+ lineColor={colorChange}
+ topColor={topColorChange}
+ bottomColor={bottomColorChange}
+ ref={handleSeriesReference}
+ priceLineVisible={false}
+ >
+
+
+ {:else if displayData === "MAX"}
+
({
+ time,
+ value: close,
+ }))}
+ lineWidth={1.5}
+ priceScaleId="right"
+ lineColor={colorChange}
+ topColor={topColorChange}
+ bottomColor={bottomColorChange}
+ ref={handleSeriesReference}
+ priceLineVisible={false}
+ >
+
+
+ {/if}
+
+