Permalink
Browse files

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.
  • Loading branch information...
1 parent b878f25 commit 540d3ace3e4e4c25ff93c011b62f157684c510ca @mbostock mbostock committed Jul 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/clock/clock.js
View
@@ -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)

0 comments on commit 540d3ac

Please sign in to comment.