diff --git a/src/lib/components/FailToDeliver.svelte b/src/lib/components/FailToDeliver.svelte index 2322d434..2f5ee79d 100644 --- a/src/lib/components/FailToDeliver.svelte +++ b/src/lib/components/FailToDeliver.svelte @@ -113,15 +113,10 @@ plotOptions: { series: { color: "white", - animation: false, - dataLabels: { - enabled: false, - style: { - fontSize: "13px", - fontWeight: "bold", - }, - formatter: function () { - return abbreviateNumber(this.y); + animation: false, // Disable series animation + states: { + hover: { + enabled: false, // Disable hover effect globally }, }, }, @@ -129,7 +124,6 @@ legend: { enabled: false, }, - tooltip: { shared: true, useHTML: true, diff --git a/src/lib/components/Options/HottestContracts.svelte b/src/lib/components/Options/HottestContracts.svelte new file mode 100644 index 00000000..39e6dc85 --- /dev/null +++ b/src/lib/components/Options/HottestContracts.svelte @@ -0,0 +1,1061 @@ + + +
+
+
+
+

+ Hottest Contracts (Highest Volume) +

+
+ + + + + + {#each volumeList as item, index} + + + + + + + + + + + + + {/each} + +
+ + {item?.option_type === "C" ? "Call" : "Put"} + + + + {item?.dte} + + {item?.otm}% + + {item?.last ?? "n/a"} + + {#if item?.low && item?.high} + {item?.low}-{item?.high} + {:else} + n/a + {/if} + + {item?.volume?.toLocaleString("en-US")} + + {item?.open_interest?.toLocaleString("en-US")} + + {#if item?.changeOI >= 0} + +{item?.changeOI?.toLocaleString("en-US")} + {:else if item?.changeOI < 0} + {item?.changeOI?.toLocaleString("en-US")} + {:else} + n/a + {/if} + + {item?.iv ? item?.iv + "%" : "n/a"} + + {@html abbreviateNumberWithColor( + item?.total_premium, + false, + true, + )} +
+
+ +

+ Highest OI Contracts +

+
+ + + + + + {#each openInterestList as item, index} + + + + + + + + + + + + + {/each} + +
+ + {item?.option_type === "C" ? "Call" : "Put"} + + + + {item?.dte} + + {item?.otm}% + + {item?.last ?? "n/a"} + + {#if item?.low && item?.high} + {item?.low}-{item?.high} + {:else} + n/a + {/if} + + {item?.volume?.toLocaleString("en-US")} + + {item?.open_interest?.toLocaleString("en-US")} + + {#if item?.changeOI >= 0} + +{item?.changeOI?.toLocaleString("en-US")} + {:else if item?.changeOI < 0} + {item?.changeOI?.toLocaleString("en-US")} + {:else} + n/a + {/if} + + {item?.iv ? item?.iv + "%" : "n/a"} + + {@html abbreviateNumberWithColor( + item?.total_premium, + false, + true, + )} +
+
+ + +
+
+
+
+ + + + + diff --git a/src/lib/components/Options/UnusualActivity.svelte b/src/lib/components/Options/UnusualActivity.svelte index afff4d11..7035c735 100644 --- a/src/lib/components/Options/UnusualActivity.svelte +++ b/src/lib/components/Options/UnusualActivity.svelte @@ -1,9 +1,5 @@ - {#if rawDataVolume?.length > 0} -
-

- Hottest Contracts (Highest Volume) -

-
- - - - - - {#each volumeList as item, index} - - - - - - - - - - - - - {/each} - -
- - {item?.option_type === "C" ? "Call" : "Put"} - - - - {item?.dte} - - {item?.otm}% - - {item?.last ?? "n/a"} - - {#if item?.low && item?.high} - {item?.low}-{item?.high} - {:else} - n/a - {/if} - - {item?.volume?.toLocaleString("en-US")} - - {item?.open_interest?.toLocaleString("en-US")} - - {#if item?.changeOI >= 0} - +{item?.changeOI?.toLocaleString("en-US")} - {:else if item?.changeOI < 0} - {item?.changeOI?.toLocaleString("en-US")} - {:else} - n/a - {/if} - - {item?.iv ? item?.iv + "%" : "n/a"} - - {@html abbreviateNumberWithColor( - item?.total_premium, - false, - true, - )} -
-
- -

- Highest OI Contracts -

-
- - - - - - {#each openInterestList as item, index} - - - - - - - - - - - - - {/each} - -
- - {item?.option_type === "C" ? "Call" : "Put"} - - - - {item?.dte} - - {item?.otm}% - - {item?.last ?? "n/a"} - - {#if item?.low && item?.high} - {item?.low}-{item?.high} - {:else} - n/a - {/if} - - {item?.volume?.toLocaleString("en-US")} - - {item?.open_interest?.toLocaleString("en-US")} - - {#if item?.changeOI >= 0} - +{item?.changeOI?.toLocaleString("en-US")} - {:else if item?.changeOI < 0} - {item?.changeOI?.toLocaleString("en-US")} - {:else} - n/a - {/if} - - {item?.iv ? item?.iv + "%" : "n/a"} - - {@html abbreviateNumberWithColor( - item?.total_premium, - false, - true, - )} -
-
- - -
+ {#if data?.getData?.volume?.length > 0} + {:else}
-

- Hottest Contracts -

@@ -848,237 +32,3 @@
- - - - - diff --git a/src/routes/market-flow/+page.svelte b/src/routes/market-flow/+page.svelte index cd1def39..fec39719 100644 --- a/src/routes/market-flow/+page.svelte +++ b/src/routes/market-flow/+page.svelte @@ -414,7 +414,12 @@ plotOptions: { series: { color: "white", - animation: false, + animation: false, // Disable series animation + states: { + hover: { + enabled: false, // Disable hover effect globally + }, + }, }, }, }; diff --git a/src/routes/market-flow/sector-flow/+page.svelte b/src/routes/market-flow/sector-flow/+page.svelte index e1054205..188de3a5 100644 --- a/src/routes/market-flow/sector-flow/+page.svelte +++ b/src/routes/market-flow/sector-flow/+page.svelte @@ -439,7 +439,12 @@ plotOptions: { series: { color: "white", - animation: false, + animation: false, // Disable series animation + states: { + hover: { + enabled: false, // Disable hover effect globally + }, + }, }, }, }; diff --git a/src/routes/stocks/[tickerID]/options/hottest-contracts/+page.svelte b/src/routes/stocks/[tickerID]/options/hottest-contracts/+page.svelte index b9d441a1..4b659cb9 100644 --- a/src/routes/stocks/[tickerID]/options/hottest-contracts/+page.svelte +++ b/src/routes/stocks/[tickerID]/options/hottest-contracts/+page.svelte @@ -1,580 +1,11 @@ - {#if rawDataVolume?.length > 0} -
-

- Hottest Contracts (Highest Volume) -

-
- - - - - - {#each volumeList as item, index} - - - - - - - - - - - - - {/each} - -
- - {item?.option_type === "C" ? "Call" : "Put"} - - - - {item?.dte} - - {item?.otm}% - - {item?.last ?? "n/a"} - - {#if item?.low && item?.high} - {item?.low}-{item?.high} - {:else} - n/a - {/if} - - {item?.volume?.toLocaleString("en-US")} - - {item?.open_interest?.toLocaleString("en-US")} - - {#if item?.changeOI >= 0} - +{item?.changeOI?.toLocaleString("en-US")} - {:else if item?.changeOI < 0} - {item?.changeOI?.toLocaleString("en-US")} - {:else} - n/a - {/if} - - {item?.iv ? item?.iv + "%" : "n/a"} - - {@html abbreviateNumberWithColor( - item?.total_premium, - false, - true, - )} -
-
- -

- Highest OI Contracts -

-
- - - - - - {#each openInterestList as item, index} - - - - - - - - - - - - - {/each} - -
- - {item?.option_type === "C" ? "Call" : "Put"} - - - - {item?.dte} - - {item?.otm}% - - {item?.last ?? "n/a"} - - {#if item?.low && item?.high} - {item?.low}-{item?.high} - {:else} - n/a - {/if} - - {item?.volume?.toLocaleString("en-US")} - - {item?.open_interest?.toLocaleString("en-US")} - - {#if item?.changeOI >= 0} - +{item?.changeOI?.toLocaleString("en-US")} - {:else if item?.changeOI < 0} - {item?.changeOI?.toLocaleString("en-US")} - {:else} - n/a - {/if} - - {item?.iv ? item?.iv + "%" : "n/a"} - - {@html abbreviateNumberWithColor( - item?.total_premium, - false, - true, - )} -
-
- - -
+ {#if data?.getData?.volume?.length > 0} + {:else}
-

- Hottest Contracts -

@@ -848,237 +32,3 @@
- - - - - diff --git a/src/routes/stocks/[tickerID]/statistics/market-cap/+page.svelte b/src/routes/stocks/[tickerID]/statistics/market-cap/+page.svelte index 5d1736a0..68e2a98f 100644 --- a/src/routes/stocks/[tickerID]/statistics/market-cap/+page.svelte +++ b/src/routes/stocks/[tickerID]/statistics/market-cap/+page.svelte @@ -349,16 +349,10 @@ plotOptions: { series: { color: "white", - animation: false, - dataLabels: { - enabled: false, - color: "white", - style: { - fontSize: "13px", - fontWeight: "bold", - }, - formatter: function () { - return abbreviateNumber(this?.y); + animation: false, // Disable series animation + states: { + hover: { + enabled: false, // Disable hover effect globally }, }, },