Commit 540d3ace authored by Mike Bostock's avatar Mike Bostock

Fix polar clock example.

The shortest-path interpolation for HSL was causing all the bars to be the same
color. Switching to string-interpolation preserves the original behavior.
parent b878f258
......@@ -14,7 +14,7 @@ var width = 960,
var fill = d3.scale.linear()
.range(["hsl(-180, 50%, 50%)", "hsl(180, 50%, 50%)"])
.interpolate(d3.interpolateHsl);
.interpolate(d3.interpolateString);
var arc = d3.svg.arc()
.startAngle(0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment