ui fix
This commit is contained in:
parent
bbb2b42013
commit
fa9e2a1726
@ -506,12 +506,22 @@
|
|||||||
const high = highList[dataIndex];
|
const high = highList[dataIndex];
|
||||||
const low = lowList[dataIndex];
|
const low = lowList[dataIndex];
|
||||||
|
|
||||||
return `
|
// Only show High and Low if they are not "N/A"
|
||||||
<b>${dates[dataIndex]}</b><br>
|
let tooltipContent = `<b>${dates[dataIndex]}</b><br>`;
|
||||||
High: ${high ? high?.toFixed(2) : "N/A"}<br>
|
|
||||||
Avg: ${mainValue?.toFixed(2)}<br>
|
if (high && high !== "N/A") {
|
||||||
Low: ${low ? low?.toFixed(2) : "N/A"}
|
tooltipContent += `High: ${high.toFixed(2)}<br>`;
|
||||||
`;
|
}
|
||||||
|
|
||||||
|
if (mainValue && mainValue !== "N/A") {
|
||||||
|
tooltipContent += `Avg: ${mainValue.toFixed(2)}<br>`;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (low && low !== "N/A") {
|
||||||
|
tooltipContent += `Low: ${low.toFixed(2)}<br>`;
|
||||||
|
}
|
||||||
|
|
||||||
|
return tooltipContent;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user