Skip to content

Commit

Permalink
Remove fill from example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondavies committed Apr 26, 2018
1 parent 1b91cad commit 4fc1a94
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/browserify.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
var d3 = require("d3"),
cloud = require("../");

var fill = d3.scale.category20();

var layout = cloud()
.size([500, 500])
.words([
Expand All @@ -29,7 +27,6 @@ function draw(words) {
.enter().append("text")
.style("font-size", function(d) { return d.size + "px"; })
.style("font-family", "Impact")
.style("fill", function(d, i) { return fill(i); })
.attr("text-anchor", "middle")
.attr("transform", function(d) {
return "translate(" + [d.x, d.y] + ")rotate(" + d.rotate + ")";
Expand Down

0 comments on commit 4fc1a94

Please sign in to comment.