Skip to content

Commit b0ff9be

Browse files
Fix tooltip border color
1 parent 1bf40cf commit b0ff9be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

site/static/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@
102102
tooltip.style.top = (tooltipTopOffset + top + shiftX) + "px";
103103
tooltip.style.left = (tooltipLeftOffset + lft + shiftY) + "px";
104104

105-
tooltip.style.borderColor = isInterpolated(dataIdx) ? interpolatedColor : "#000000";
105+
tooltip.style.borderColor = isInterpolated(dataIdx) ?
106+
interpolatedColor :
107+
u.series[seriesIdx].stroke;
108+
106109
let trailer = "";
107110
if (absoluteMode) {
108111
let pctSinceStart = (((u.data[seriesIdx][dataIdx] - u.data[seriesIdx][0]) / u.data[seriesIdx][0]) * 100).toFixed(2);

0 commit comments

Comments
 (0)