Skip to content

Commit f5e8d21

Browse files
Merge pull request #759 from ecstatic-morse/consistent-cache-states-fixes
Fix some fallout from #758
2 parents 1bf40cf + ade47d7 commit f5e8d21

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

site/static/index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
const commonCacheStateColors = {
7777
"full": "#7cb5ec",
7878
"incr-full": "#434348",
79-
"incr-unchanged": "#f7a35c",
80-
"incr-patched: println": "#90ed7d",
79+
"incr-unchanged": "#90ed7d",
80+
"incr-patched: println": "#f7a35c",
8181
};
8282

8383
const otherCacheStateColors = ["#8085e9", "#f15c80", "#e4d354", "#2b908f", "#f45b5b", "#91e8e1"];
@@ -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)