Skip to content

Commit ed71513

Browse files
author
Mike Bostock + Erica Kwan
committed
Fix d3#239: Add missing width & height attrs.
1 parent ce75813 commit ed71513

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

examples/cartogram/cartogram.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ var data = [
66
.169, , .132, .167, .139, .184, .159, .14, .146, .157, , .139, .183, .16, .143
77
];
88

9-
var svg = d3.select("#chart")
10-
.append("svg:svg");
9+
var svg = d3.select("#chart").append("svg:svg")
10+
.attr("width", 960)
11+
.attr("height", 500);
1112

1213
d3.json("../data/us-states.json", function(json) {
1314
var path = d3.geo.path();

0 commit comments

Comments
 (0)