ui fixes
This commit is contained in:
parent
5a63299a6c
commit
117a303e71
@ -128,29 +128,47 @@
|
|||||||
legend: {
|
legend: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
shared: true,
|
||||||
useHTML: 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: {
|
style: {
|
||||||
color: "black",
|
color: "#fff",
|
||||||
fontSize: "16px",
|
fontSize: "16px",
|
||||||
padding: "10px",
|
padding: "10px",
|
||||||
},
|
},
|
||||||
borderRadius: 2,
|
borderRadius: 4,
|
||||||
borderWidth: 1,
|
|
||||||
borderColor: "#ffffff",
|
|
||||||
formatter: function () {
|
formatter: function () {
|
||||||
return `<span class="m-auto text-black text-[1rem] font-[501]">${new Date(
|
// Format the x value to display time in hh:mm format
|
||||||
|
let tooltipContent = `<span class="text-white m-auto text-black text-[1rem] font-[501]">${new Date(
|
||||||
this?.x,
|
this?.x,
|
||||||
).toLocaleDateString("en-US", {
|
).toLocaleDateString("en-US", {
|
||||||
year: "numeric",
|
year: "numeric",
|
||||||
month: "short",
|
month: "short",
|
||||||
day: "numeric",
|
day: "numeric",
|
||||||
})}</span> <br> <span class="text-black font-normal text-sm">${abbreviateNumber(this.y)}</span>`;
|
})}</span><br>`;
|
||||||
|
|
||||||
|
// Loop through each point in the shared tooltip
|
||||||
|
this.points.forEach((point) => {
|
||||||
|
tooltipContent += `<span class="text-white font-semibold text-sm">${point.series.name}:</span>
|
||||||
|
<span class="text-white font-normal text-sm" style="color:${point.color}">${abbreviateNumber(
|
||||||
|
point.y,
|
||||||
|
)}</span><br>`;
|
||||||
|
});
|
||||||
|
|
||||||
|
return tooltipContent;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
categories: dates,
|
categories: dates,
|
||||||
|
crosshair: {
|
||||||
|
color: "#fff", // Set the color of the crosshair line
|
||||||
|
width: 1, // Adjust the line width as needed
|
||||||
|
dashStyle: "Solid",
|
||||||
|
},
|
||||||
labels: {
|
labels: {
|
||||||
style: {
|
style: {
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
@ -197,7 +215,12 @@
|
|||||||
yAxis: 1,
|
yAxis: 1,
|
||||||
color: "#E11D48",
|
color: "#E11D48",
|
||||||
marker: {
|
marker: {
|
||||||
fillColor: "transparent",
|
enabled: false,
|
||||||
|
states: {
|
||||||
|
hover: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -207,7 +230,12 @@
|
|||||||
data: priceList,
|
data: priceList,
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
marker: {
|
marker: {
|
||||||
fillColor: "transparent",
|
enabled: false,
|
||||||
|
states: {
|
||||||
|
hover: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
lineWidth: 2,
|
lineWidth: 2,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -661,7 +661,7 @@
|
|||||||
/></svg
|
/></svg
|
||||||
>
|
>
|
||||||
<span class="text-white text-[1rem] font-semibold"
|
<span class="text-white text-[1rem] font-semibold"
|
||||||
>Unlimited Options Data</span
|
>Realtime Options Data</span
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
<li class="flex items-center space-x-3">
|
<li class="flex items-center space-x-3">
|
||||||
@ -689,7 +689,7 @@
|
|||||||
/></svg
|
/></svg
|
||||||
>
|
>
|
||||||
<span class="text-white text-[1rem] font-semibold"
|
<span class="text-white text-[1rem] font-semibold"
|
||||||
>Unlimited Dark Pool Data</span
|
>Realtime Dark Pool Data</span
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|||||||
@ -273,6 +273,11 @@
|
|||||||
type: "datetime",
|
type: "datetime",
|
||||||
endOnTick: false,
|
endOnTick: false,
|
||||||
categories: filteredData?.dates,
|
categories: filteredData?.dates,
|
||||||
|
crosshair: {
|
||||||
|
color: "#fff", // Set the color of the crosshair line
|
||||||
|
width: 1, // Adjust the line width as needed
|
||||||
|
dashStyle: "Solid",
|
||||||
|
},
|
||||||
labels: {
|
labels: {
|
||||||
style: {
|
style: {
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
@ -309,24 +314,36 @@
|
|||||||
opposite: true,
|
opposite: true,
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
shared: true,
|
||||||
useHTML: 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: {
|
style: {
|
||||||
color: "black",
|
color: "#fff",
|
||||||
fontSize: "16px",
|
fontSize: "16px",
|
||||||
padding: "10px",
|
padding: "10px",
|
||||||
},
|
},
|
||||||
borderRadius: 2,
|
borderRadius: 4,
|
||||||
borderWidth: 1,
|
|
||||||
borderColor: "#fff",
|
|
||||||
formatter: function () {
|
formatter: function () {
|
||||||
return `<span class="m-auto text-black text-[1rem] font-[501]">${new Date(
|
// Format the x value to display time in hh:mm format
|
||||||
|
let tooltipContent = `<span class="text-white m-auto text-black text-[1rem] font-[501]">${new Date(
|
||||||
this?.x,
|
this?.x,
|
||||||
).toLocaleDateString("en-US", {
|
).toLocaleDateString("en-US", {
|
||||||
year: "numeric",
|
year: "numeric",
|
||||||
month: "short",
|
month: "short",
|
||||||
day: "numeric",
|
day: "numeric",
|
||||||
})}</span> <br> <span class="text-black font-normal text-sm">${abbreviateNumber(this.y)}</span>`;
|
})}</span><br>`;
|
||||||
|
|
||||||
|
// Loop through each point in the shared tooltip
|
||||||
|
this.points.forEach((point) => {
|
||||||
|
tooltipContent += `<span class="text-white font-semibold text-sm">${point.series.name}:</span>
|
||||||
|
<span class="text-white font-normal text-sm" style="color:${point.color}">${abbreviateNumber(
|
||||||
|
point.y,
|
||||||
|
)}</span><br>`;
|
||||||
|
});
|
||||||
|
|
||||||
|
return tooltipContent;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plotOptions: {
|
plotOptions: {
|
||||||
|
|||||||
@ -129,24 +129,36 @@
|
|||||||
opposite: true,
|
opposite: true,
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
shared: true,
|
||||||
useHTML: 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: {
|
style: {
|
||||||
color: "black",
|
color: "#fff",
|
||||||
fontSize: "16px",
|
fontSize: "16px",
|
||||||
padding: "10px",
|
padding: "10px",
|
||||||
},
|
},
|
||||||
borderRadius: 2,
|
borderRadius: 4,
|
||||||
borderWidth: 1,
|
|
||||||
borderColor: "#fff",
|
|
||||||
formatter: function () {
|
formatter: function () {
|
||||||
return `<span class="m-auto text-black text-[1rem] font-[501]">${new Date(
|
// Format the x value to display time in hh:mm format
|
||||||
|
let tooltipContent = `<span class="text-white m-auto text-black text-[1rem] font-[501]">${new Date(
|
||||||
this?.x,
|
this?.x,
|
||||||
).toLocaleDateString("en-US", {
|
).toLocaleDateString("en-US", {
|
||||||
year: "numeric",
|
year: "numeric",
|
||||||
month: "short",
|
month: "short",
|
||||||
day: "numeric",
|
day: "numeric",
|
||||||
})}</span> <br> <span class="text-black font-normal text-sm">${abbreviateNumber(this.y)}</span>`;
|
})}</span><br>`;
|
||||||
|
|
||||||
|
// Loop through each point in the shared tooltip
|
||||||
|
this.points.forEach((point) => {
|
||||||
|
tooltipContent += `<span class="text-white font-semibold text-sm">${point.series.name}:</span>
|
||||||
|
<span class="text-white font-normal text-sm" style="color:${point.color}">${abbreviateNumber(
|
||||||
|
point.y,
|
||||||
|
)}</span><br>`;
|
||||||
|
});
|
||||||
|
|
||||||
|
return tooltipContent;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user