Skip to content

Commit

Permalink
update coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
NickQiZhu committed Aug 21, 2013
1 parent 572ce8d commit c4f54a0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/chapter11/force-directed-graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<script type="text/javascript">
var w = 1280,
h = 800,
z = d3.scale.category20c();
z = d3.scale.category20();

var force = d3.layout.force()
.size([w, h]);
Expand Down
2 changes: 1 addition & 1 deletion src/chapter11/multi-foci.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<script type="text/javascript">
var svg = d3.select("body").append("svg:svg"),
colors = d3.scale.category10(),
colors = d3.scale.category20(),
w = 900,
h = 600;

Expand Down
2 changes: 1 addition & 1 deletion src/chapter6/easing.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
return t * t;
}
],
colors = d3.scale.category10();
colors = d3.scale.category20();

d3.select("body").selectAll("div")
.data(data) // <-C
Expand Down
2 changes: 1 addition & 1 deletion src/chapter7/arc-label.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
var width = 400,
height = 400,
fullAngle = 2 * Math.PI,
colors = d3.scale.category20c();
colors = d3.scale.category20();

var svg = d3.select("body").append("svg")
.attr("class", "pie")
Expand Down
2 changes: 1 addition & 1 deletion src/chapter7/arc-transition.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
var width = 400,
height = 400,
endAngle = 2 * Math.PI,
colors = d3.scale.category20c();
colors = d3.scale.category20();

var svg = d3.select("body").append("svg")
.attr("class", "pie")
Expand Down
2 changes: 1 addition & 1 deletion src/chapter7/arc.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
var width = 400,
height = 400,
fullAngle = 2 * Math.PI, // <-A
colors = d3.scale.category20c();
colors = d3.scale.category20();

var svg = d3.select("body").append("svg")
.attr("class", "pie")
Expand Down
2 changes: 1 addition & 1 deletion src/chapter9/treemap.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
var _chart = {};

var _width = 1600, _height = 800,
_colors = d3.scale.category20c(),
_colors = d3.scale.category20(),
_svg,
_nodes,
_x = d3.scale.linear().range([0, _width]),
Expand Down

0 comments on commit c4f54a0

Please sign in to comment.