diff --git a/src/lib/components/FailToDeliver.svelte b/src/lib/components/FailToDeliver.svelte index 1ab63ee8..1ca81ed3 100644 --- a/src/lib/components/FailToDeliver.svelte +++ b/src/lib/components/FailToDeliver.svelte @@ -128,29 +128,47 @@ legend: { enabled: false, }, + tooltip: { + shared: true, useHTML: true, - backgroundColor: "#fff", + backgroundColor: "rgba(0, 0, 0, 0.8)", // Semi-transparent black + borderColor: "rgba(255, 255, 255, 0.2)", // Slightly visible white border + borderWidth: 1, style: { - color: "black", + color: "#fff", fontSize: "16px", padding: "10px", }, - borderRadius: 2, - borderWidth: 1, - borderColor: "#ffffff", + borderRadius: 4, formatter: function () { - return `${new Date( + // Format the x value to display time in hh:mm format + let tooltipContent = `${new Date( this?.x, ).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric", - })}
${abbreviateNumber(this.y)}`; + })}

`; + + // Loop through each point in the shared tooltip + this.points.forEach((point) => { + tooltipContent += `${point.series.name}: + ${abbreviateNumber( + point.y, + )}
`; + }); + + return tooltipContent; }, }, xAxis: { categories: dates, + crosshair: { + color: "#fff", // Set the color of the crosshair line + width: 1, // Adjust the line width as needed + dashStyle: "Solid", + }, labels: { style: { color: "#fff", @@ -197,7 +215,12 @@ yAxis: 1, color: "#E11D48", marker: { - fillColor: "transparent", + enabled: false, + states: { + hover: { + enabled: false, + }, + }, }, }, { @@ -207,7 +230,12 @@ data: priceList, color: "#fff", marker: { - fillColor: "transparent", + enabled: false, + states: { + hover: { + enabled: false, + }, + }, }, lineWidth: 2, }, diff --git a/src/routes/pricing/+page.svelte b/src/routes/pricing/+page.svelte index 2d73d96b..bb8b7ae3 100644 --- a/src/routes/pricing/+page.svelte +++ b/src/routes/pricing/+page.svelte @@ -661,7 +661,7 @@ /> Unlimited Options DataRealtime Options Data
  • @@ -689,7 +689,7 @@ /> Unlimited Dark Pool DataRealtime Dark Pool Data
  • diff --git a/src/routes/stocks/[tickerID]/statistics/market-cap/+page.svelte b/src/routes/stocks/[tickerID]/statistics/market-cap/+page.svelte index 90e6fdd9..5d1736a0 100644 --- a/src/routes/stocks/[tickerID]/statistics/market-cap/+page.svelte +++ b/src/routes/stocks/[tickerID]/statistics/market-cap/+page.svelte @@ -273,6 +273,11 @@ type: "datetime", endOnTick: false, categories: filteredData?.dates, + crosshair: { + color: "#fff", // Set the color of the crosshair line + width: 1, // Adjust the line width as needed + dashStyle: "Solid", + }, labels: { style: { color: "#fff", @@ -309,24 +314,36 @@ opposite: true, }, tooltip: { + shared: true, useHTML: true, - backgroundColor: "#fff", + backgroundColor: "rgba(0, 0, 0, 0.8)", // Semi-transparent black + borderColor: "rgba(255, 255, 255, 0.2)", // Slightly visible white border + borderWidth: 1, style: { - color: "black", + color: "#fff", fontSize: "16px", padding: "10px", }, - borderRadius: 2, - borderWidth: 1, - borderColor: "#fff", + borderRadius: 4, formatter: function () { - return `${new Date( + // Format the x value to display time in hh:mm format + let tooltipContent = `${new Date( this?.x, ).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric", - })}
    ${abbreviateNumber(this.y)}`; + })}

    `; + + // Loop through each point in the shared tooltip + this.points.forEach((point) => { + tooltipContent += `${point.series.name}: + ${abbreviateNumber( + point.y, + )}
    `; + }); + + return tooltipContent; }, }, plotOptions: { diff --git a/src/routes/stocks/[tickerID]/statistics/revenue/+page.svelte b/src/routes/stocks/[tickerID]/statistics/revenue/+page.svelte index 4900f19a..c3ef9c55 100644 --- a/src/routes/stocks/[tickerID]/statistics/revenue/+page.svelte +++ b/src/routes/stocks/[tickerID]/statistics/revenue/+page.svelte @@ -129,24 +129,36 @@ opposite: true, }, tooltip: { + shared: true, useHTML: true, - backgroundColor: "#fff", + backgroundColor: "rgba(0, 0, 0, 0.8)", // Semi-transparent black + borderColor: "rgba(255, 255, 255, 0.2)", // Slightly visible white border + borderWidth: 1, style: { - color: "black", + color: "#fff", fontSize: "16px", padding: "10px", }, - borderRadius: 2, - borderWidth: 1, - borderColor: "#fff", + borderRadius: 4, formatter: function () { - return `${new Date( + // Format the x value to display time in hh:mm format + let tooltipContent = `${new Date( this?.x, ).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric", - })}
    ${abbreviateNumber(this.y)}`; + })}

    `; + + // Loop through each point in the shared tooltip + this.points.forEach((point) => { + tooltipContent += `${point.series.name}: + ${abbreviateNumber( + point.y, + )}
    `; + }); + + return tooltipContent; }, },