ui fix
This commit is contained in:
parent
04906ceefa
commit
6c16779027
@ -113,15 +113,10 @@
|
|||||||
plotOptions: {
|
plotOptions: {
|
||||||
series: {
|
series: {
|
||||||
color: "white",
|
color: "white",
|
||||||
animation: false,
|
animation: false, // Disable series animation
|
||||||
dataLabels: {
|
states: {
|
||||||
enabled: false,
|
hover: {
|
||||||
style: {
|
enabled: false, // Disable hover effect globally
|
||||||
fontSize: "13px",
|
|
||||||
fontWeight: "bold",
|
|
||||||
},
|
|
||||||
formatter: function () {
|
|
||||||
return abbreviateNumber(this.y);
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -129,7 +124,6 @@
|
|||||||
legend: {
|
legend: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
tooltip: {
|
tooltip: {
|
||||||
shared: true,
|
shared: true,
|
||||||
useHTML: true,
|
useHTML: true,
|
||||||
|
|||||||
1061
src/lib/components/Options/HottestContracts.svelte
Normal file
1061
src/lib/components/Options/HottestContracts.svelte
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {
|
import { abbreviateNumber, abbreviateNumberWithColor } from "$lib/utils";
|
||||||
abbreviateNumber,
|
|
||||||
abbreviateNumberWithColor,
|
|
||||||
monthNames,
|
|
||||||
} from "$lib/utils";
|
|
||||||
import { screenWidth, setCache, getCache } from "$lib/store";
|
import { screenWidth, setCache, getCache } from "$lib/store";
|
||||||
|
|
||||||
import TableHeader from "$lib/components/Table/TableHeader.svelte";
|
import TableHeader from "$lib/components/Table/TableHeader.svelte";
|
||||||
@ -134,12 +130,12 @@
|
|||||||
|
|
||||||
// Build data arrays from the aggregated data
|
// Build data arrays from the aggregated data
|
||||||
dates = Object.keys(aggregatedData);
|
dates = Object.keys(aggregatedData);
|
||||||
callData = dates.map((date) => aggregatedData[date].callSize);
|
callData = dates?.map((date) => aggregatedData[date].callSize);
|
||||||
putData = dates.map((date) => aggregatedData[date].putSize);
|
putData = dates?.map((date) => aggregatedData[date].putSize);
|
||||||
totalPremiums = dates.map((date) => aggregatedData[date].totalPremium);
|
totalPremiums = dates?.map((date) => aggregatedData[date].totalPremium);
|
||||||
|
|
||||||
// Get the historical prices for matching dates
|
// Get the historical prices for matching dates
|
||||||
priceList = dates.map((date) => {
|
priceList = dates?.map((date) => {
|
||||||
const matchingData = data?.getHistoricalPrice?.find(
|
const matchingData = data?.getHistoricalPrice?.find(
|
||||||
(d) => d?.time === date,
|
(d) => d?.time === date,
|
||||||
);
|
);
|
||||||
@ -151,6 +147,17 @@
|
|||||||
credits: {
|
credits: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
|
plotOptions: {
|
||||||
|
series: {
|
||||||
|
color: "white",
|
||||||
|
animation: false, // Disable series animation
|
||||||
|
states: {
|
||||||
|
hover: {
|
||||||
|
enabled: false, // Disable hover effect globally
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
chart: {
|
chart: {
|
||||||
// Removed global type so each series can define its own type.
|
// Removed global type so each series can define its own type.
|
||||||
backgroundColor: "#09090B",
|
backgroundColor: "#09090B",
|
||||||
@ -262,6 +269,7 @@
|
|||||||
data: callData,
|
data: callData,
|
||||||
color: "#00FC50",
|
color: "#00FC50",
|
||||||
borderColor: "#00FC50", // Match border color
|
borderColor: "#00FC50", // Match border color
|
||||||
|
borderRadius: "2px",
|
||||||
marker: {
|
marker: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
@ -273,13 +281,14 @@
|
|||||||
data: putData,
|
data: putData,
|
||||||
color: "#EE5365",
|
color: "#EE5365",
|
||||||
borderColor: "#EE5365", // Match border color
|
borderColor: "#EE5365", // Match border color
|
||||||
|
borderRadius: "2px",
|
||||||
marker: {
|
marker: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
animation: false,
|
animation: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Price",
|
name: "Stock Price",
|
||||||
type: "area",
|
type: "area",
|
||||||
yAxis: 1,
|
yAxis: 1,
|
||||||
data: priceList,
|
data: priceList,
|
||||||
@ -449,12 +458,11 @@
|
|||||||
// Disable markers globally on hover for all series
|
// Disable markers globally on hover for all series
|
||||||
plotOptions: {
|
plotOptions: {
|
||||||
series: {
|
series: {
|
||||||
marker: {
|
color: "white",
|
||||||
enabled: false,
|
animation: false, // Disable series animation
|
||||||
states: {
|
states: {
|
||||||
hover: {
|
hover: {
|
||||||
enabled: false,
|
enabled: false, // Disable hover effect globally
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -922,20 +930,22 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pb-8 sm:pb-2 rounded-md bg-default overflow-hidden">
|
<div class="pb-8 sm:pb-2 rounded-md bg-default overflow-hidden">
|
||||||
<div class="flex justify-end ml-auto w-fit mr-2 mt-2">
|
<div
|
||||||
|
class="flex flex-row items-center justify-between gap-x-2 ml-auto w-fit mt-2"
|
||||||
|
>
|
||||||
{#each ["Vol/OI", "IV"] as item}
|
{#each ["Vol/OI", "IV"] as item}
|
||||||
<label
|
<label
|
||||||
on:click={() => (selectGraphType = item)}
|
on:click={() => (selectGraphType = item)}
|
||||||
class="px-3 py-1.5 mr-2 {selectGraphType === item
|
class="px-3 py-1.5 {selectGraphType === item
|
||||||
? 'bg-white text-black '
|
? 'bg-white text-black '
|
||||||
: 'text-white bg-default text-opacity-[0.6] border border-gray-800'} transition ease-out duration-100 sm:hover:bg-white sm:hover:text-black rounded-md cursor-pointer"
|
: 'text-white bg-default text-opacity-[0.6] border border-gray-600'} transition ease-out duration-100 sm:hover:bg-white sm:hover:text-black rounded-md cursor-pointer"
|
||||||
>
|
>
|
||||||
{item}
|
{item}
|
||||||
</label>
|
</label>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="mt-5 border border-gray-800 rounded"
|
class="mt-2 border border-gray-800 rounded"
|
||||||
use:highcharts={configContract}
|
use:highcharts={configContract}
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -241,11 +241,14 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
plotOptions: {
|
plotOptions: {
|
||||||
animation: false,
|
series: {
|
||||||
column: {
|
color: "white",
|
||||||
grouping: true,
|
animation: false, // Disable series animation
|
||||||
shadow: false,
|
states: {
|
||||||
borderWidth: 0,
|
hover: {
|
||||||
|
enabled: false, // Disable hover effect globally
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -414,7 +414,12 @@
|
|||||||
plotOptions: {
|
plotOptions: {
|
||||||
series: {
|
series: {
|
||||||
color: "white",
|
color: "white",
|
||||||
animation: false,
|
animation: false, // Disable series animation
|
||||||
|
states: {
|
||||||
|
hover: {
|
||||||
|
enabled: false, // Disable hover effect globally
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -439,7 +439,12 @@
|
|||||||
plotOptions: {
|
plotOptions: {
|
||||||
series: {
|
series: {
|
||||||
color: "white",
|
color: "white",
|
||||||
animation: false,
|
animation: false, // Disable series animation
|
||||||
|
states: {
|
||||||
|
hover: {
|
||||||
|
enabled: false, // Disable hover effect globally
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -349,16 +349,10 @@
|
|||||||
plotOptions: {
|
plotOptions: {
|
||||||
series: {
|
series: {
|
||||||
color: "white",
|
color: "white",
|
||||||
animation: false,
|
animation: false, // Disable series animation
|
||||||
dataLabels: {
|
states: {
|
||||||
enabled: false,
|
hover: {
|
||||||
color: "white",
|
enabled: false, // Disable hover effect globally
|
||||||
style: {
|
|
||||||
fontSize: "13px",
|
|
||||||
fontWeight: "bold",
|
|
||||||
},
|
|
||||||
formatter: function () {
|
|
||||||
return abbreviateNumber(this?.y);
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user