Skip to content

Commit 540d3ac

Browse files
committed
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.
1 parent b878f25 commit 540d3ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/clock/clock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var width = 960,
1414

1515
var fill = d3.scale.linear()
1616
.range(["hsl(-180, 50%, 50%)", "hsl(180, 50%, 50%)"])
17-
.interpolate(d3.interpolateHsl);
17+
.interpolate(d3.interpolateString);
1818

1919
var arc = d3.svg.arc()
2020
.startAngle(0)

0 commit comments

Comments
 (0)