-
vizulyJuly 26, 2017 at 8:08 am #8034
Hello,
Sorry for the delayed response.
You are definitely on the right track. It sounds like you already have the color working correctly, and you just need to update the code in Step 3.
Simply replace the scope.value with scope.value1 function. Additionally you will want to modify this code in the
measure()
function to use the scope.value1 (versus scope.value) function.for (var i=1; i < maxDepth+1; i++) { var vals = nodes.filter(function (d) { return d.depth == i}); maxValues[i] = d3.max(vals, function (d) { return scope.value1(d)}); minValues[i] = d3.min(vals, function (d) { return scope.value1(d)}); }
Good Luck,
Tom
You must be logged in to reply to this topic.
© 2024 — vizuly.io