draw lines and graph with new __color__ attr

This commit is contained in:
Colin Megill
2017-12-22 19:28:36 -08:00
parent 769cbea140
commit 377b8c55b7
+2 -5
View File
@@ -22,13 +22,10 @@ const drawLinesCanvas = (
ctx.globalAlpha = .1; ctx.globalAlpha = .1;
if (colorAccessor && colorScale && d["__selected__"]) { if (d["__selected__"]) {
ctx.strokeStyle = d3.interpolateViridis(colorScale(d[colorAccessor])); ctx.strokeStyle = d["__color__"];
} else if (d["__selected__"]) {
ctx.strokeStyle = "rgba(0,0,0,1)";
} else { } else {
return return
// ctx.strokeStyle = "rgba(0,0,0,.1)";
} }
ctx.beginPath(); ctx.beginPath();