Skip to content

Instantly share code, notes, and snippets.

@enjalot
Created May 27, 2013 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enjalot/5655269 to your computer and use it in GitHub Desktop.
Save enjalot/5655269 to your computer and use it in GitHub Desktop.
obesity map
{"description":"obesity map","endpoint":"","display":"svg","public":true,"require":[{"name":"cartogram","url":"http://enjalot.github.io/d3-cartogram/cartogram.js"},{"name":"colorbrewer","url":"http://enjalot.github.io/d3-cartogram/lib/colorbrewer.js"},{"name":"topojson","url":"http://enjalot.github.io/d3-cartogram/lib/topojson.js"}],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"obesity.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"style.css":{"default":true,"vim":false,"emacs":false,"fontSize":12},"us.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":true,"loop":true,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"thumbnail":"http://i.imgur.com/JHHBGCO.png"}
//from http://blog.milesgrimshaw.com/2013/03/14/obesity-in-the-usa/
//and http://prag.ma/code/d3-cartogram/?segmentized#netmigrate/2011
//inspired by https://plus.google.com/+avinash/posts/2ssDxtgp15K
var topology = tributary.us;
var geometries = topology.objects.states.geometries;
var data = tributary.obesity;
colors = ["#ffffff","#ff0000", "#000000"]
var year0 = 1995
var year1 = 2010
var yearScale = d3.scale.linear()
.domain([0,1])
.range([year0, year1])
year = year0;
tributary.loop_type = "none";
tributary.duration = 20000;
var duration = tributary.duration/(year1-year0) - 50;
var svg = d3.select("svg");
rawData = data;
dataById = d3.nest()
.key(function(d) { return d.state; })
//.rollup(function(d) { return d[0]; })
.map(data);
var field = "obese";
var proj = d3.geo.albersUsa();
var carto = d3.cartogram()
.projection(proj)
.properties(function(d) {
return dataById[d.id.toLowerCase()];
})
.value(function(d) {
//console.log(d);
return +d.properties[field];
});
var zoom = d3.behavior.zoom()
.translate([-38, 32])
.scale(.94)
.scaleExtent([0.5, 10.0])
var yearTitle = svg.append("text")
.classed("year", true)
.text(year)
.attr({
x: tributary.sw - 250,
y: tributary.sh - 50
})
var proj = d3.geo.albersUsa();
carto = d3.cartogram()
.projection(proj)
.properties(function(d) {
return dataById[d.id.toLowerCase()];
})
.value(function(d) {
return +d.properties[field];
});
tributary.init = function(g) {
var map = g.append("g").classed("map", true);
var layer = map.append("g")
.attr("class", "layer");
var states = layer.append("g")
.attr("class", "states")
.selectAll("path");
var features = carto.features(topology, geometries),
path = d3.geo.path()
.projection(proj);
states = g.select("g.states").selectAll("path");
states = states.data(features)
.enter()
.append("path")
.attr("class", "state")
.attr("id", function(d) {
return d.id.toLowerCase();
})
.attr("fill", "#fafafa")
.attr("d", path);
states.append("title");
if(!tributary.bv) {
states.style("fill-opacity", 1)
}
// map.call(zoom);
updateZoom(g);
}
var lastyear = year-1;
tributary.run = function(g,t,i) {
year = Math.floor(yearScale(t));
//console.log(year, lastyear);
if(year != lastyear || i > 0) {
update(g);
d3.select("text.year").text(year);
}
lastyear = year;
}
function updateZoom(g) {
var scale = zoom.scale();
g.select("g.layer").attr("transform",
"translate(" + zoom.translate() + ") " +
"scale(" + [scale, scale] + ")");
}
function update(g) {
states = g.select("g.states").selectAll("path");
var start = Date.now();
var fmt = (typeof field.format === "function")
? field.format
: d3.format(field.format || ","),
value = function(d) {
return d3.max(d.properties, function(d) {
if(d.year === year) return d.obese
return 0;
})
},
values = states.data()
.map(value)
.filter(function(n) {
return !isNaN(n);
})
.sort(d3.ascending),
lo = values[0],
hi = values[values.length - 1];
hi = 40;
console.log(lo, d3.mean(values), hi)
var color = d3.scale.linear()
.range(colors)
.domain(lo < 0
? [lo, 0, hi]
: [lo, d3.mean(values), hi]);
// : [0, d3.mean(values), hi]);
// normalize the scale to positive numbers
var scale = d3.scale.linear()
.domain([lo, hi])
.range([1, 1000]);
// tell the cartogram to use the scaled values
carto.value(function(d) {
return scale(value(d));
});
// generate the new features, pre-projected
var features = carto(topology, geometries).features;
// update the data
states.data(features)
.select("title")
.text(function(d) {
return [d.properties.NAME, fmt(value(d))].join(": ");
});
states.transition()
.duration(duration)
.ease("linear")
.attr("fill", function(d) {
return color(value(d));
})
.attr("d", carto.path);
var delta = (Date.now() - start) / 1000;
//stat.text(["calculated in", delta.toFixed(1), "seconds"].join(" "));
}
var deferredUpdate = (function() {
var timeout;
return function() {
var args = arguments;
clearTimeout(timeout);
// stat.text("calculating...");
return timeout = setTimeout(function() {
update.apply(null, arguments);
}, 10);
};
})();
[{"state":"alabama","year":1995,"obese":18.7},
{"state":"alabama","year":1996,"obese":20.5},
{"state":"alabama","year":1997,"obese":18.2},
{"state":"alabama","year":1998,"obese":21.3},
{"state":"alabama","year":1999,"obese":22.4},
{"state":"alabama","year":2000,"obese":23.9},
{"state":"alabama","year":2001,"obese":24.5},
{"state":"alabama","year":2002,"obese":25.7},
{"state":"alabama","year":2003,"obese":28.4},
{"state":"alabama","year":2004,"obese":28.8},
{"state":"alabama","year":2005,"obese":28.9},
{"state":"alabama","year":2006,"obese":30.5},
{"state":"alabama","year":2007,"obese":30.9},
{"state":"alabama","year":2008,"obese":32.2},
{"state":"alabama","year":2009,"obese":31.6},
{"state":"alabama","year":2010,"obese":33},
{"state":"alaska","year":1995,"obese":19.8},
{"state":"alaska","year":1996,"obese":17.5},
{"state":"alaska","year":1997,"obese":19.7},
{"state":"alaska","year":1998,"obese":21.4},
{"state":"alaska","year":1999,"obese":20.4},
{"state":"alaska","year":2000,"obese":21},
{"state":"alaska","year":2001,"obese":22.1},
{"state":"alaska","year":2002,"obese":23.4},
{"state":"alaska","year":2003,"obese":23.5},
{"state":"alaska","year":2004,"obese":23.7},
{"state":"alaska","year":2005,"obese":27.4},
{"state":"alaska","year":2006,"obese":26.2},
{"state":"alaska","year":2007,"obese":28.2},
{"state":"alaska","year":2008,"obese":27.1},
{"state":"alaska","year":2009,"obese":25.4},
{"state":"alaska","year":2010,"obese":25.2},
{"state":"arizona","year":1995,"obese":13.3},
{"state":"arizona","year":1996,"obese":15.1},
{"state":"arizona","year":1997,"obese":12.4},
{"state":"arizona","year":1998,"obese":13.1},
{"state":"arizona","year":1999,"obese":12.3},
{"state":"arizona","year":2000,"obese":19.2},
{"state":"arizona","year":2001,"obese":18.5},
{"state":"arizona","year":2002,"obese":19.6},
{"state":"arizona","year":2003,"obese":20.1},
{"state":"arizona","year":2004,"obese":21.2},
{"state":"arizona","year":2005,"obese":21.1},
{"state":"arizona","year":2006,"obese":22.9},
{"state":"arizona","year":2007,"obese":25.8},
{"state":"arizona","year":2008,"obese":25.6},
{"state":"arizona","year":2009,"obese":25.9},
{"state":"arizona","year":2010,"obese":25.2},
{"state":"arkansas","year":1995,"obese":17.5},
{"state":"arkansas","year":1996,"obese":17.8},
{"state":"arkansas","year":1997,"obese":18.1},
{"state":"arkansas","year":1998,"obese":19.8},
{"state":"arkansas","year":1999,"obese":22.7},
{"state":"arkansas","year":2000,"obese":23.3},
{"state":"arkansas","year":2001,"obese":22.4},
{"state":"arkansas","year":2002,"obese":23.7},
{"state":"arkansas","year":2003,"obese":25.2},
{"state":"arkansas","year":2004,"obese":26.1},
{"state":"arkansas","year":2005,"obese":28},
{"state":"arkansas","year":2006,"obese":26.9},
{"state":"arkansas","year":2007,"obese":29.3},
{"state":"arkansas","year":2008,"obese":29.5},
{"state":"arkansas","year":2009,"obese":31.5},
{"state":"arkansas","year":2010,"obese":30.9},
{"state":"california","year":1995,"obese":15.1},
{"state":"california","year":1996,"obese":14.6},
{"state":"california","year":1997,"obese":16},
{"state":"california","year":1998,"obese":17.3},
{"state":"california","year":1999,"obese":18.7},
{"state":"california","year":2000,"obese":19.9},
{"state":"california","year":2001,"obese":21.9},
{"state":"california","year":2002,"obese":19.2},
{"state":"california","year":2003,"obese":23.2},
{"state":"california","year":2004,"obese":22.2},
{"state":"california","year":2005,"obese":22.7},
{"state":"california","year":2006,"obese":23.3},
{"state":"california","year":2007,"obese":23.3},
{"state":"california","year":2008,"obese":24.3},
{"state":"california","year":2009,"obese":25.5},
{"state":"california","year":2010,"obese":24.7},
{"state":"colorado","year":1995,"obese":10.1},
{"state":"colorado","year":1996,"obese":10.3},
{"state":"colorado","year":1997,"obese":11.8},
{"state":"colorado","year":1998,"obese":14.4},
{"state":"colorado","year":1999,"obese":14.9},
{"state":"colorado","year":2000,"obese":14.2},
{"state":"colorado","year":2001,"obese":14.9},
{"state":"colorado","year":2002,"obese":16.5},
{"state":"colorado","year":2003,"obese":16},
{"state":"colorado","year":2004,"obese":16.8},
{"state":"colorado","year":2005,"obese":17.8},
{"state":"colorado","year":2006,"obese":18.2},
{"state":"colorado","year":2007,"obese":19.3},
{"state":"colorado","year":2008,"obese":19.1},
{"state":"colorado","year":2009,"obese":19},
{"state":"colorado","year":2010,"obese":21.4},
{"state":"connecticut","year":1995,"obese":12.5},
{"state":"connecticut","year":1996,"obese":13.4},
{"state":"connecticut","year":1997,"obese":14.7},
{"state":"connecticut","year":1998,"obese":15.5},
{"state":"connecticut","year":1999,"obese":15.1},
{"state":"connecticut","year":2000,"obese":17.4},
{"state":"connecticut","year":2001,"obese":17.9},
{"state":"connecticut","year":2002,"obese":18},
{"state":"connecticut","year":2003,"obese":19.1},
{"state":"connecticut","year":2004,"obese":19.7},
{"state":"connecticut","year":2005,"obese":20.1},
{"state":"connecticut","year":2006,"obese":20.6},
{"state":"connecticut","year":2007,"obese":21.7},
{"state":"connecticut","year":2008,"obese":21.4},
{"state":"connecticut","year":2009,"obese":21},
{"state":"connecticut","year":2010,"obese":23},
{"state":"delaware","year":1995,"obese":17.1},
{"state":"delaware","year":1996,"obese":17.7},
{"state":"delaware","year":1997,"obese":18.8},
{"state":"delaware","year":1998,"obese":17.2},
{"state":"delaware","year":1999,"obese":17.5},
{"state":"delaware","year":2000,"obese":16.6},
{"state":"delaware","year":2001,"obese":20.8},
{"state":"delaware","year":2002,"obese":22.4},
{"state":"delaware","year":2003,"obese":24},
{"state":"delaware","year":2004,"obese":21.1},
{"state":"delaware","year":2005,"obese":23.5},
{"state":"delaware","year":2006,"obese":26},
{"state":"delaware","year":2007,"obese":28.2},
{"state":"delaware","year":2008,"obese":27.8},
{"state":"delaware","year":2009,"obese":27.6},
{"state":"delaware","year":2010,"obese":28.7},
{"state":"district of columbia","year":1996,"obese":16.8},
{"state":"district of columbia","year":1997,"obese":14.5},
{"state":"district of columbia","year":1998,"obese":20.2},
{"state":"district of columbia","year":1999,"obese":18.5},
{"state":"district of columbia","year":2000,"obese":21.5},
{"state":"district of columbia","year":2001,"obese":20},
{"state":"district of columbia","year":2002,"obese":20.7},
{"state":"district of columbia","year":2003,"obese":20.3},
{"state":"district of columbia","year":2004,"obese":22.5},
{"state":"district of columbia","year":2005,"obese":21.7},
{"state":"district of columbia","year":2006,"obese":22.5},
{"state":"district of columbia","year":2007,"obese":22.2},
{"state":"district of columbia","year":2008,"obese":22.3},
{"state":"district of columbia","year":2009,"obese":20.1},
{"state":"district of columbia","year":2010,"obese":22.4},
{"state":"florida","year":1995,"obese":17.2},
{"state":"florida","year":1996,"obese":16.7},
{"state":"florida","year":1997,"obese":16.1},
{"state":"florida","year":1998,"obese":18},
{"state":"florida","year":1999,"obese":18.6},
{"state":"florida","year":2000,"obese":18.7},
{"state":"florida","year":2001,"obese":18.8},
{"state":"florida","year":2002,"obese":19.4},
{"state":"florida","year":2003,"obese":19.9},
{"state":"florida","year":2004,"obese":22.9},
{"state":"florida","year":2005,"obese":22.8},
{"state":"florida","year":2006,"obese":23.1},
{"state":"florida","year":2007,"obese":24.1},
{"state":"florida","year":2008,"obese":25.2},
{"state":"florida","year":2009,"obese":26.5},
{"state":"florida","year":2010,"obese":27.2},
{"state":"georgia","year":1995,"obese":13.3},
{"state":"georgia","year":1996,"obese":11.5},
{"state":"georgia","year":1997,"obese":14.4},
{"state":"georgia","year":1998,"obese":19.2},
{"state":"georgia","year":1999,"obese":21.1},
{"state":"georgia","year":2000,"obese":21.5},
{"state":"georgia","year":2001,"obese":22.7},
{"state":"georgia","year":2002,"obese":23.5},
{"state":"georgia","year":2003,"obese":25.2},
{"state":"georgia","year":2004,"obese":24.7},
{"state":"georgia","year":2005,"obese":26.5},
{"state":"georgia","year":2006,"obese":27.1},
{"state":"georgia","year":2007,"obese":28.7},
{"state":"georgia","year":2008,"obese":27.8},
{"state":"georgia","year":2009,"obese":27.7},
{"state":"georgia","year":2010,"obese":30.4},
{"state":"hawaii","year":1995,"obese":10.8},
{"state":"hawaii","year":1996,"obese":12.9},
{"state":"hawaii","year":1997,"obese":13.6},
{"state":"hawaii","year":1998,"obese":15.5},
{"state":"hawaii","year":1999,"obese":15.7},
{"state":"hawaii","year":2000,"obese":15.7},
{"state":"hawaii","year":2001,"obese":17.9},
{"state":"hawaii","year":2002,"obese":17.1},
{"state":"hawaii","year":2003,"obese":16.4},
{"state":"hawaii","year":2005,"obese":19.7},
{"state":"hawaii","year":2006,"obese":20.6},
{"state":"hawaii","year":2007,"obese":21.7},
{"state":"hawaii","year":2008,"obese":23.1},
{"state":"hawaii","year":2009,"obese":22.9},
{"state":"hawaii","year":2010,"obese":23.1},
{"state":"idaho","year":1995,"obese":14.2},
{"state":"idaho","year":1996,"obese":16.9},
{"state":"idaho","year":1997,"obese":16.3},
{"state":"idaho","year":1998,"obese":16.4},
{"state":"idaho","year":1999,"obese":20},
{"state":"idaho","year":2000,"obese":18.9},
{"state":"idaho","year":2001,"obese":20.5},
{"state":"idaho","year":2002,"obese":20.2},
{"state":"idaho","year":2003,"obese":21.8},
{"state":"idaho","year":2004,"obese":20.8},
{"state":"idaho","year":2005,"obese":24.5},
{"state":"idaho","year":2006,"obese":24.1},
{"state":"idaho","year":2007,"obese":25.1},
{"state":"idaho","year":2008,"obese":25.2},
{"state":"idaho","year":2009,"obese":25.1},
{"state":"idaho","year":2010,"obese":26.9},
{"state":"illinois","year":1995,"obese":16.7},
{"state":"illinois","year":1996,"obese":17},
{"state":"illinois","year":1997,"obese":17.1},
{"state":"illinois","year":1998,"obese":18.5},
{"state":"illinois","year":1999,"obese":20.9},
{"state":"illinois","year":2000,"obese":21.7},
{"state":"illinois","year":2001,"obese":21},
{"state":"illinois","year":2002,"obese":21.9},
{"state":"illinois","year":2003,"obese":23.7},
{"state":"illinois","year":2004,"obese":23},
{"state":"illinois","year":2005,"obese":25.1},
{"state":"illinois","year":2006,"obese":25.1},
{"state":"illinois","year":2007,"obese":25.6},
{"state":"illinois","year":2008,"obese":26.9},
{"state":"illinois","year":2009,"obese":27.4},
{"state":"illinois","year":2010,"obese":28.7},
{"state":"indiana","year":1995,"obese":20.1},
{"state":"indiana","year":1996,"obese":18.6},
{"state":"indiana","year":1997,"obese":21.2},
{"state":"indiana","year":1998,"obese":19.9},
{"state":"indiana","year":1999,"obese":19.9},
{"state":"indiana","year":2000,"obese":21.8},
{"state":"indiana","year":2001,"obese":24.5},
{"state":"indiana","year":2002,"obese":24.1},
{"state":"indiana","year":2003,"obese":26},
{"state":"indiana","year":2004,"obese":25.5},
{"state":"indiana","year":2005,"obese":27.2},
{"state":"indiana","year":2006,"obese":27.8},
{"state":"indiana","year":2007,"obese":27.4},
{"state":"indiana","year":2008,"obese":27},
{"state":"indiana","year":2009,"obese":30},
{"state":"indiana","year":2010,"obese":30.2},
{"state":"iowa","year":1995,"obese":17.5},
{"state":"iowa","year":1996,"obese":18.7},
{"state":"iowa","year":1997,"obese":19.4},
{"state":"iowa","year":1998,"obese":19.8},
{"state":"iowa","year":1999,"obese":21.5},
{"state":"iowa","year":2000,"obese":21.5},
{"state":"iowa","year":2001,"obese":22.5},
{"state":"iowa","year":2002,"obese":22.9},
{"state":"iowa","year":2003,"obese":23.9},
{"state":"iowa","year":2004,"obese":23.5},
{"state":"iowa","year":2005,"obese":25.4},
{"state":"iowa","year":2006,"obese":25.7},
{"state":"iowa","year":2007,"obese":27.7},
{"state":"iowa","year":2008,"obese":26.7},
{"state":"iowa","year":2009,"obese":28.5},
{"state":"iowa","year":2010,"obese":29.1},
{"state":"kansas","year":1995,"obese":15.9},
{"state":"kansas","year":1996,"obese":13.4},
{"state":"kansas","year":1997,"obese":14.7},
{"state":"kansas","year":1998,"obese":17.7},
{"state":"kansas","year":1999,"obese":18.9},
{"state":"kansas","year":2000,"obese":20.8},
{"state":"kansas","year":2001,"obese":21.6},
{"state":"kansas","year":2002,"obese":22.8},
{"state":"kansas","year":2003,"obese":22.6},
{"state":"kansas","year":2004,"obese":23.2},
{"state":"kansas","year":2005,"obese":23.9},
{"state":"kansas","year":2006,"obese":25.9},
{"state":"kansas","year":2007,"obese":27.7},
{"state":"kansas","year":2008,"obese":28.1},
{"state":"kansas","year":2009,"obese":28.8},
{"state":"kansas","year":2010,"obese":30.1},
{"state":"kentucky","year":1995,"obese":16.9},
{"state":"kentucky","year":1996,"obese":19.2},
{"state":"kentucky","year":1997,"obese":21.8},
{"state":"kentucky","year":1998,"obese":20.4},
{"state":"kentucky","year":1999,"obese":21.7},
{"state":"kentucky","year":2000,"obese":23},
{"state":"kentucky","year":2001,"obese":24.6},
{"state":"kentucky","year":2002,"obese":24.4},
{"state":"kentucky","year":2003,"obese":25.6},
{"state":"kentucky","year":2004,"obese":25.8},
{"state":"kentucky","year":2005,"obese":28.6},
{"state":"kentucky","year":2006,"obese":28},
{"state":"kentucky","year":2007,"obese":28.7},
{"state":"kentucky","year":2008,"obese":30.3},
{"state":"kentucky","year":2009,"obese":32.4},
{"state":"kentucky","year":2010,"obese":31.8},
{"state":"louisiana","year":1995,"obese":17.7},
{"state":"louisiana","year":1996,"obese":19.7},
{"state":"louisiana","year":1997,"obese":19.6},
{"state":"louisiana","year":1998,"obese":21.8},
{"state":"louisiana","year":1999,"obese":22.3},
{"state":"louisiana","year":2000,"obese":23.6},
{"state":"louisiana","year":2001,"obese":24},
{"state":"louisiana","year":2002,"obese":25.5},
{"state":"louisiana","year":2003,"obese":24.8},
{"state":"louisiana","year":2004,"obese":26.9},
{"state":"louisiana","year":2005,"obese":30.8},
{"state":"louisiana","year":2006,"obese":27.1},
{"state":"louisiana","year":2007,"obese":30.7},
{"state":"louisiana","year":2008,"obese":29},
{"state":"louisiana","year":2009,"obese":33.9},
{"state":"louisiana","year":2010,"obese":31.7},
{"state":"maine","year":1995,"obese":14.1},
{"state":"maine","year":1996,"obese":16.1},
{"state":"maine","year":1997,"obese":16.2},
{"state":"maine","year":1998,"obese":17.4},
{"state":"maine","year":1999,"obese":19.4},
{"state":"maine","year":2000,"obese":20},
{"state":"maine","year":2001,"obese":19.5},
{"state":"maine","year":2002,"obese":20.7},
{"state":"maine","year":2003,"obese":19.9},
{"state":"maine","year":2004,"obese":23.4},
{"state":"maine","year":2005,"obese":22.7},
{"state":"maine","year":2006,"obese":23.1},
{"state":"maine","year":2007,"obese":25.2},
{"state":"maine","year":2008,"obese":25.9},
{"state":"maine","year":2009,"obese":26.4},
{"state":"maine","year":2010,"obese":27.4},
{"state":"maryland","year":1995,"obese":16.3},
{"state":"maryland","year":1996,"obese":17.7},
{"state":"maryland","year":1997,"obese":17.5},
{"state":"maryland","year":1998,"obese":20.5},
{"state":"maryland","year":1999,"obese":18.2},
{"state":"maryland","year":2000,"obese":20.2},
{"state":"maryland","year":2001,"obese":20.5},
{"state":"maryland","year":2002,"obese":19.4},
{"state":"maryland","year":2003,"obese":21.9},
{"state":"maryland","year":2004,"obese":23.9},
{"state":"maryland","year":2005,"obese":24.4},
{"state":"maryland","year":2006,"obese":24.9},
{"state":"maryland","year":2007,"obese":26.3},
{"state":"maryland","year":2008,"obese":26.7},
{"state":"maryland","year":2009,"obese":26.8},
{"state":"maryland","year":2010,"obese":27.9},
{"state":"massachusetts","year":1995,"obese":11.7},
{"state":"massachusetts","year":1996,"obese":13.1},
{"state":"massachusetts","year":1997,"obese":14.8},
{"state":"massachusetts","year":1998,"obese":14.3},
{"state":"massachusetts","year":1999,"obese":14.7},
{"state":"massachusetts","year":2000,"obese":16.8},
{"state":"massachusetts","year":2001,"obese":16.6},
{"state":"massachusetts","year":2002,"obese":18.3},
{"state":"massachusetts","year":2003,"obese":16.8},
{"state":"massachusetts","year":2004,"obese":18.4},
{"state":"massachusetts","year":2005,"obese":20.7},
{"state":"massachusetts","year":2006,"obese":20.3},
{"state":"massachusetts","year":2007,"obese":21.7},
{"state":"massachusetts","year":2008,"obese":21.5},
{"state":"massachusetts","year":2009,"obese":21.8},
{"state":"massachusetts","year":2010,"obese":23.6},
{"state":"michigan","year":1995,"obese":18.2},
{"state":"michigan","year":1996,"obese":18.2},
{"state":"michigan","year":1997,"obese":19.3},
{"state":"michigan","year":1998,"obese":21.2},
{"state":"michigan","year":1999,"obese":22.8},
{"state":"michigan","year":2000,"obese":22.4},
{"state":"michigan","year":2001,"obese":25},
{"state":"michigan","year":2002,"obese":25.4},
{"state":"michigan","year":2003,"obese":25.2},
{"state":"michigan","year":2004,"obese":25.4},
{"state":"michigan","year":2005,"obese":26.2},
{"state":"michigan","year":2006,"obese":28.8},
{"state":"michigan","year":2007,"obese":28.2},
{"state":"michigan","year":2008,"obese":29.5},
{"state":"michigan","year":2009,"obese":30.3},
{"state":"michigan","year":2010,"obese":31.7},
{"state":"minnesota","year":1995,"obese":15.3},
{"state":"minnesota","year":1996,"obese":14.3},
{"state":"minnesota","year":1997,"obese":16.5},
{"state":"minnesota","year":1998,"obese":16.2},
{"state":"minnesota","year":1999,"obese":15.5},
{"state":"minnesota","year":2000,"obese":17.4},
{"state":"minnesota","year":2001,"obese":19.9},
{"state":"minnesota","year":2002,"obese":22.4},
{"state":"minnesota","year":2003,"obese":23},
{"state":"minnesota","year":2004,"obese":22.6},
{"state":"minnesota","year":2005,"obese":23.7},
{"state":"minnesota","year":2006,"obese":24.7},
{"state":"minnesota","year":2007,"obese":26},
{"state":"minnesota","year":2008,"obese":25.2},
{"state":"minnesota","year":2009,"obese":25.4},
{"state":"minnesota","year":2010,"obese":25.4},
{"state":"mississippi","year":1995,"obese":19.5},
{"state":"mississippi","year":1996,"obese":19.8},
{"state":"mississippi","year":1997,"obese":22},
{"state":"mississippi","year":1998,"obese":22.8},
{"state":"mississippi","year":1999,"obese":23.2},
{"state":"mississippi","year":2000,"obese":25},
{"state":"mississippi","year":2001,"obese":26.5},
{"state":"mississippi","year":2002,"obese":26.8},
{"state":"mississippi","year":2003,"obese":28.1},
{"state":"mississippi","year":2004,"obese":29.5},
{"state":"mississippi","year":2005,"obese":30.9},
{"state":"mississippi","year":2006,"obese":31.4},
{"state":"mississippi","year":2007,"obese":32.6},
{"state":"mississippi","year":2008,"obese":33.4},
{"state":"mississippi","year":2009,"obese":35.4},
{"state":"mississippi","year":2010,"obese":34.5},
{"state":"missouri","year":1995,"obese":18.9},
{"state":"missouri","year":1996,"obese":19.2},
{"state":"missouri","year":1997,"obese":19.1},
{"state":"missouri","year":1998,"obese":20.5},
{"state":"missouri","year":1999,"obese":21.7},
{"state":"missouri","year":2000,"obese":22.1},
{"state":"missouri","year":2001,"obese":23.2},
{"state":"missouri","year":2002,"obese":23.2},
{"state":"missouri","year":2003,"obese":23.6},
{"state":"missouri","year":2004,"obese":24.9},
{"state":"missouri","year":2005,"obese":26.9},
{"state":"missouri","year":2006,"obese":27.2},
{"state":"missouri","year":2007,"obese":28.2},
{"state":"missouri","year":2008,"obese":29.1},
{"state":"missouri","year":2009,"obese":30.6},
{"state":"missouri","year":2010,"obese":31.4},
{"state":"montana","year":1995,"obese":13.4},
{"state":"montana","year":1996,"obese":14.3},
{"state":"montana","year":1997,"obese":14.6},
{"state":"montana","year":1998,"obese":15},
{"state":"montana","year":1999,"obese":15.8},
{"state":"montana","year":2000,"obese":15.9},
{"state":"montana","year":2001,"obese":18.8},
{"state":"montana","year":2002,"obese":18.7},
{"state":"montana","year":2003,"obese":18.8},
{"state":"montana","year":2004,"obese":19.7},
{"state":"montana","year":2005,"obese":21.3},
{"state":"montana","year":2006,"obese":21.2},
{"state":"montana","year":2007,"obese":22.6},
{"state":"montana","year":2008,"obese":24.3},
{"state":"montana","year":2009,"obese":23.7},
{"state":"montana","year":2010,"obese":23.5},
{"state":"nebraska","year":1995,"obese":16.3},
{"state":"nebraska","year":1996,"obese":16.3},
{"state":"nebraska","year":1997,"obese":17},
{"state":"nebraska","year":1998,"obese":18.3},
{"state":"nebraska","year":1999,"obese":21},
{"state":"nebraska","year":2000,"obese":21.1},
{"state":"nebraska","year":2001,"obese":20.7},
{"state":"nebraska","year":2002,"obese":23.2},
{"state":"nebraska","year":2003,"obese":23.9},
{"state":"nebraska","year":2004,"obese":23.2},
{"state":"nebraska","year":2005,"obese":26},
{"state":"nebraska","year":2006,"obese":26.9},
{"state":"nebraska","year":2007,"obese":26.5},
{"state":"nebraska","year":2008,"obese":27.2},
{"state":"nebraska","year":2009,"obese":28.1},
{"state":"nebraska","year":2010,"obese":27.5},
{"state":"nevada","year":1995,"obese":13.3},
{"state":"nevada","year":1996,"obese":15.5},
{"state":"nevada","year":1997,"obese":14.1},
{"state":"nevada","year":1998,"obese":14},
{"state":"nevada","year":1999,"obese":15.8},
{"state":"nevada","year":2000,"obese":17.9},
{"state":"nevada","year":2001,"obese":19.5},
{"state":"nevada","year":2002,"obese":21.6},
{"state":"nevada","year":2003,"obese":21.2},
{"state":"nevada","year":2004,"obese":21.1},
{"state":"nevada","year":2005,"obese":21.2},
{"state":"nevada","year":2006,"obese":25},
{"state":"nevada","year":2007,"obese":24.6},
{"state":"nevada","year":2008,"obese":25.6},
{"state":"nevada","year":2009,"obese":26.4},
{"state":"nevada","year":2010,"obese":23.1},
{"state":"new hampshire","year":1995,"obese":15.1},
{"state":"new hampshire","year":1996,"obese":14.5},
{"state":"new hampshire","year":1997,"obese":14.2},
{"state":"new hampshire","year":1998,"obese":15.6},
{"state":"new hampshire","year":1999,"obese":14.6},
{"state":"new hampshire","year":2000,"obese":18.1},
{"state":"new hampshire","year":2001,"obese":19.4},
{"state":"new hampshire","year":2002,"obese":17.9},
{"state":"new hampshire","year":2003,"obese":20.2},
{"state":"new hampshire","year":2004,"obese":21.6},
{"state":"new hampshire","year":2005,"obese":23.1},
{"state":"new hampshire","year":2006,"obese":22.4},
{"state":"new hampshire","year":2007,"obese":25.1},
{"state":"new hampshire","year":2008,"obese":24.9},
{"state":"new hampshire","year":2009,"obese":26.3},
{"state":"new hampshire","year":2010,"obese":25.5},
{"state":"new jersey","year":1995,"obese":14.5},
{"state":"new jersey","year":1996,"obese":13.5},
{"state":"new jersey","year":1997,"obese":16},
{"state":"new jersey","year":1998,"obese":15.5},
{"state":"new jersey","year":1999,"obese":17},
{"state":"new jersey","year":2000,"obese":18.5},
{"state":"new jersey","year":2001,"obese":19.6},
{"state":"new jersey","year":2002,"obese":19},
{"state":"new jersey","year":2003,"obese":20.1},
{"state":"new jersey","year":2004,"obese":21.9},
{"state":"new jersey","year":2005,"obese":22.1},
{"state":"new jersey","year":2006,"obese":22.6},
{"state":"new jersey","year":2007,"obese":24.1},
{"state":"new jersey","year":2008,"obese":23.6},
{"state":"new jersey","year":2009,"obese":23.9},
{"state":"new jersey","year":2010,"obese":24.8},
{"state":"new mexico","year":1995,"obese":13},
{"state":"new mexico","year":1996,"obese":14.1},
{"state":"new mexico","year":1997,"obese":14.9},
{"state":"new mexico","year":1998,"obese":15.2},
{"state":"new mexico","year":1999,"obese":17.7},
{"state":"new mexico","year":2000,"obese":19.3},
{"state":"new mexico","year":2001,"obese":19.7},
{"state":"new mexico","year":2002,"obese":19.7},
{"state":"new mexico","year":2003,"obese":20.2},
{"state":"new mexico","year":2004,"obese":21.5},
{"state":"new mexico","year":2005,"obese":21.7},
{"state":"new mexico","year":2006,"obese":22.9},
{"state":"new mexico","year":2007,"obese":25.1},
{"state":"new mexico","year":2008,"obese":25.7},
{"state":"new mexico","year":2009,"obese":25.6},
{"state":"new mexico","year":2010,"obese":25.6},
{"state":"new york","year":1995,"obese":13.9},
{"state":"new york","year":1996,"obese":14.5},
{"state":"new york","year":1997,"obese":16},
{"state":"new york","year":1998,"obese":16.3},
{"state":"new york","year":1999,"obese":17.4},
{"state":"new york","year":2000,"obese":17.7},
{"state":"new york","year":2001,"obese":20.3},
{"state":"new york","year":2002,"obese":20.6},
{"state":"new york","year":2003,"obese":20.9},
{"state":"new york","year":2004,"obese":22.1},
{"state":"new york","year":2005,"obese":22.2},
{"state":"new york","year":2006,"obese":22.9},
{"state":"new york","year":2007,"obese":25.5},
{"state":"new york","year":2008,"obese":25.1},
{"state":"new york","year":2009,"obese":24.6},
{"state":"new york","year":2010,"obese":24.5},
{"state":"north carolina","year":1995,"obese":16.9},
{"state":"north carolina","year":1996,"obese":18.1},
{"state":"north carolina","year":1997,"obese":18.3},
{"state":"north carolina","year":1998,"obese":19.4},
{"state":"north carolina","year":1999,"obese":21.5},
{"state":"north carolina","year":2000,"obese":21.8},
{"state":"north carolina","year":2001,"obese":22.9},
{"state":"north carolina","year":2002,"obese":23.5},
{"state":"north carolina","year":2003,"obese":24},
{"state":"north carolina","year":2004,"obese":24.2},
{"state":"north carolina","year":2005,"obese":25.9},
{"state":"north carolina","year":2006,"obese":26.6},
{"state":"north carolina","year":2007,"obese":28.7},
{"state":"north carolina","year":2008,"obese":29.5},
{"state":"north carolina","year":2009,"obese":30.1},
{"state":"north carolina","year":2010,"obese":28.6},
{"state":"north dakota","year":1995,"obese":16.4},
{"state":"north dakota","year":1996,"obese":18.4},
{"state":"north dakota","year":1997,"obese":17},
{"state":"north dakota","year":1998,"obese":19.2},
{"state":"north dakota","year":1999,"obese":21.9},
{"state":"north dakota","year":2000,"obese":20.4},
{"state":"north dakota","year":2001,"obese":20.4},
{"state":"north dakota","year":2002,"obese":23.4},
{"state":"north dakota","year":2003,"obese":23.7},
{"state":"north dakota","year":2004,"obese":24.6},
{"state":"north dakota","year":2005,"obese":25.4},
{"state":"north dakota","year":2006,"obese":25.4},
{"state":"north dakota","year":2007,"obese":27},
{"state":"north dakota","year":2008,"obese":27.8},
{"state":"north dakota","year":2009,"obese":28.4},
{"state":"north dakota","year":2010,"obese":27.9},
{"state":"ohio","year":1995,"obese":17.5},
{"state":"ohio","year":1996,"obese":18.9},
{"state":"ohio","year":1997,"obese":17.7},
{"state":"ohio","year":1998,"obese":20},
{"state":"ohio","year":1999,"obese":20.3},
{"state":"ohio","year":2000,"obese":21.5},
{"state":"ohio","year":2001,"obese":22.4},
{"state":"ohio","year":2002,"obese":23},
{"state":"ohio","year":2003,"obese":24.9},
{"state":"ohio","year":2004,"obese":25.3},
{"state":"ohio","year":2005,"obese":24.3},
{"state":"ohio","year":2006,"obese":28.4},
{"state":"ohio","year":2007,"obese":28.1},
{"state":"ohio","year":2008,"obese":29.3},
{"state":"ohio","year":2009,"obese":29.8},
{"state":"ohio","year":2010,"obese":29.7},
{"state":"oklahoma","year":1995,"obese":13.5},
{"state":"oklahoma","year":1996,"obese":16.8},
{"state":"oklahoma","year":1997,"obese":15.1},
{"state":"oklahoma","year":1998,"obese":19.5},
{"state":"oklahoma","year":1999,"obese":21.1},
{"state":"oklahoma","year":2000,"obese":19.7},
{"state":"oklahoma","year":2001,"obese":22.6},
{"state":"oklahoma","year":2002,"obese":22.9},
{"state":"oklahoma","year":2003,"obese":24.4},
{"state":"oklahoma","year":2004,"obese":24.9},
{"state":"oklahoma","year":2005,"obese":26.8},
{"state":"oklahoma","year":2006,"obese":28.8},
{"state":"oklahoma","year":2007,"obese":28.8},
{"state":"oklahoma","year":2008,"obese":31},
{"state":"oklahoma","year":2009,"obese":32},
{"state":"oklahoma","year":2010,"obese":31.3},
{"state":"oregon","year":1995,"obese":15.2},
{"state":"oregon","year":1996,"obese":16.4},
{"state":"oregon","year":1997,"obese":19.4},
{"state":"oregon","year":1998,"obese":18.3},
{"state":"oregon","year":1999,"obese":19.9},
{"state":"oregon","year":2000,"obese":21.5},
{"state":"oregon","year":2001,"obese":21.1},
{"state":"oregon","year":2002,"obese":20.3},
{"state":"oregon","year":2003,"obese":21.5},
{"state":"oregon","year":2004,"obese":21.2},
{"state":"oregon","year":2005,"obese":23.8},
{"state":"oregon","year":2006,"obese":24.8},
{"state":"oregon","year":2007,"obese":26.3},
{"state":"oregon","year":2008,"obese":25},
{"state":"oregon","year":2009,"obese":23.6},
{"state":"oregon","year":2010,"obese":27.6},
{"state":"pennsylvania","year":1995,"obese":16.4},
{"state":"pennsylvania","year":1996,"obese":18.7},
{"state":"pennsylvania","year":1997,"obese":17.5},
{"state":"pennsylvania","year":1998,"obese":19.4},
{"state":"pennsylvania","year":1999,"obese":20.3},
{"state":"pennsylvania","year":2000,"obese":21.2},
{"state":"pennsylvania","year":2001,"obese":22.1},
{"state":"pennsylvania","year":2002,"obese":23.9},
{"state":"pennsylvania","year":2003,"obese":23.8},
{"state":"pennsylvania","year":2004,"obese":24.3},
{"state":"pennsylvania","year":2005,"obese":25.3},
{"state":"pennsylvania","year":2006,"obese":24},
{"state":"pennsylvania","year":2007,"obese":27.8},
{"state":"pennsylvania","year":2008,"obese":28.4},
{"state":"pennsylvania","year":2009,"obese":28.1},
{"state":"pennsylvania","year":2010,"obese":29.2},
{"state":"puerto rico","year":1996,"obese":16.8},
{"state":"puerto rico","year":1997,"obese":19},
{"state":"puerto rico","year":1998,"obese":19.3},
{"state":"puerto rico","year":1999,"obese":21.3},
{"state":"puerto rico","year":2000,"obese":21.7},
{"state":"puerto rico","year":2001,"obese":22.2},
{"state":"puerto rico","year":2002,"obese":22},
{"state":"puerto rico","year":2003,"obese":22.9},
{"state":"puerto rico","year":2004,"obese":24.3},
{"state":"puerto rico","year":2005,"obese":23.7},
{"state":"puerto rico","year":2006,"obese":24.7},
{"state":"puerto rico","year":2007,"obese":26.6},
{"state":"puerto rico","year":2008,"obese":26.2},
{"state":"puerto rico","year":2009,"obese":27.5},
{"state":"puerto rico","year":2010,"obese":27.5},
{"state":"rhode island","year":1995,"obese":13.2},
{"state":"rhode island","year":1996,"obese":14.3},
{"state":"rhode island","year":1997,"obese":13.8},
{"state":"rhode island","year":1998,"obese":16.8},
{"state":"rhode island","year":1999,"obese":16.8},
{"state":"rhode island","year":2000,"obese":17.1},
{"state":"rhode island","year":2001,"obese":17.7},
{"state":"rhode island","year":2002,"obese":18.5},
{"state":"rhode island","year":2003,"obese":18.4},
{"state":"rhode island","year":2004,"obese":19},
{"state":"rhode island","year":2005,"obese":21},
{"state":"rhode island","year":2006,"obese":21.4},
{"state":"rhode island","year":2007,"obese":21.7},
{"state":"rhode island","year":2008,"obese":22.1},
{"state":"rhode island","year":2009,"obese":24.9},
{"state":"rhode island","year":2010,"obese":26},
{"state":"south carolina","year":1995,"obese":16.7},
{"state":"south carolina","year":1996,"obese":18.4},
{"state":"south carolina","year":1997,"obese":16.9},
{"state":"south carolina","year":1998,"obese":20.6},
{"state":"south carolina","year":1999,"obese":20.6},
{"state":"south carolina","year":2000,"obese":22},
{"state":"south carolina","year":2001,"obese":22.5},
{"state":"south carolina","year":2002,"obese":25.8},
{"state":"south carolina","year":2003,"obese":24.5},
{"state":"south carolina","year":2004,"obese":25.1},
{"state":"south carolina","year":2005,"obese":29.1},
{"state":"south carolina","year":2006,"obese":29.4},
{"state":"south carolina","year":2007,"obese":29},
{"state":"south carolina","year":2008,"obese":30.7},
{"state":"south carolina","year":2009,"obese":30.1},
{"state":"south carolina","year":2010,"obese":32},
{"state":"south dakota","year":1995,"obese":13.9},
{"state":"south dakota","year":1996,"obese":14.7},
{"state":"south dakota","year":1997,"obese":17},
{"state":"south dakota","year":1998,"obese":15.8},
{"state":"south dakota","year":1999,"obese":19.6},
{"state":"south dakota","year":2000,"obese":19.8},
{"state":"south dakota","year":2001,"obese":21.2},
{"state":"south dakota","year":2002,"obese":21.2},
{"state":"south dakota","year":2003,"obese":22.9},
{"state":"south dakota","year":2004,"obese":23.8},
{"state":"south dakota","year":2005,"obese":25.5},
{"state":"south dakota","year":2006,"obese":25.4},
{"state":"south dakota","year":2007,"obese":27.2},
{"state":"south dakota","year":2008,"obese":28.1},
{"state":"south dakota","year":2009,"obese":30.3},
{"state":"south dakota","year":2010,"obese":27.7},
{"state":"tennessee","year":1995,"obese":18.4},
{"state":"tennessee","year":1996,"obese":17.4},
{"state":"tennessee","year":1997,"obese":17.7},
{"state":"tennessee","year":1998,"obese":19.2},
{"state":"tennessee","year":1999,"obese":20.5},
{"state":"tennessee","year":2000,"obese":22.9},
{"state":"tennessee","year":2001,"obese":23.4},
{"state":"tennessee","year":2002,"obese":24.5},
{"state":"tennessee","year":2003,"obese":25},
{"state":"tennessee","year":2004,"obese":27.2},
{"state":"tennessee","year":2005,"obese":27.4},
{"state":"tennessee","year":2006,"obese":28.8},
{"state":"tennessee","year":2007,"obese":30.7},
{"state":"tennessee","year":2008,"obese":31.2},
{"state":"tennessee","year":2009,"obese":32.9},
{"state":"tennessee","year":2010,"obese":31.7},
{"state":"texas","year":1995,"obese":15.9},
{"state":"texas","year":1996,"obese":17.2},
{"state":"texas","year":1997,"obese":18.7},
{"state":"texas","year":1998,"obese":20.2},
{"state":"texas","year":1999,"obese":21.6},
{"state":"texas","year":2000,"obese":23.1},
{"state":"texas","year":2001,"obese":24.6},
{"state":"texas","year":2002,"obese":25.5},
{"state":"texas","year":2003,"obese":24.6},
{"state":"texas","year":2004,"obese":25.8},
{"state":"texas","year":2005,"obese":27},
{"state":"texas","year":2006,"obese":26.1},
{"state":"texas","year":2007,"obese":28.6},
{"state":"texas","year":2008,"obese":28.9},
{"state":"texas","year":2009,"obese":29.5},
{"state":"texas","year":2010,"obese":31.7},
{"state":"utah","year":1997,"obese":15.2},
{"state":"utah","year":1998,"obese":15.9},
{"state":"utah","year":1999,"obese":16.7},
{"state":"utah","year":2000,"obese":19.1},
{"state":"utah","year":2001,"obese":19.1},
{"state":"utah","year":2002,"obese":17.5},
{"state":"utah","year":2003,"obese":20.8},
{"state":"utah","year":2004,"obese":20.4},
{"state":"utah","year":2005,"obese":21.2},
{"state":"utah","year":2006,"obese":21.9},
{"state":"utah","year":2007,"obese":22.4},
{"state":"utah","year":2008,"obese":23.1},
{"state":"utah","year":2009,"obese":24},
{"state":"utah","year":2010,"obese":23},
{"state":"vermont","year":1995,"obese":14.6},
{"state":"vermont","year":1996,"obese":14.9},
{"state":"vermont","year":1997,"obese":15.9},
{"state":"vermont","year":1998,"obese":14.8},
{"state":"vermont","year":1999,"obese":18},
{"state":"vermont","year":2000,"obese":18.2},
{"state":"vermont","year":2001,"obese":17.6},
{"state":"vermont","year":2002,"obese":18.9},
{"state":"vermont","year":2003,"obese":19.6},
{"state":"vermont","year":2004,"obese":18.7},
{"state":"vermont","year":2005,"obese":20.2},
{"state":"vermont","year":2006,"obese":21.2},
{"state":"vermont","year":2007,"obese":21.9},
{"state":"vermont","year":2008,"obese":23.3},
{"state":"vermont","year":2009,"obese":23.4},
{"state":"vermont","year":2010,"obese":23.9},
{"state":"virginia","year":1995,"obese":15.7},
{"state":"virginia","year":1996,"obese":15.9},
{"state":"virginia","year":1997,"obese":16.4},
{"state":"virginia","year":1998,"obese":18.7},
{"state":"virginia","year":1999,"obese":19.3},
{"state":"virginia","year":2000,"obese":18.2},
{"state":"virginia","year":2001,"obese":20.9},
{"state":"virginia","year":2002,"obese":23.8},
{"state":"virginia","year":2003,"obese":21.7},
{"state":"virginia","year":2004,"obese":23.1},
{"state":"virginia","year":2005,"obese":25.1},
{"state":"virginia","year":2006,"obese":25.1},
{"state":"virginia","year":2007,"obese":25.3},
{"state":"virginia","year":2008,"obese":25.8},
{"state":"virginia","year":2009,"obese":25.5},
{"state":"virginia","year":2010,"obese":26.4},
{"state":"virgin islands","year":2001,"obese":24.7},
{"state":"virgin islands","year":2002,"obese":24.9},
{"state":"virgin islands","year":2003,"obese":22},
{"state":"virgin islands","year":2004,"obese":23.2},
{"state":"virgin islands","year":2005,"obese":25.6},
{"state":"virgin islands","year":2006,"obese":26.1},
{"state":"virgin islands","year":2007,"obese":26.3},
{"state":"virgin islands","year":2008,"obese":26.5},
{"state":"virgin islands","year":2009,"obese":29.6},
{"state":"virgin islands","year":2010,"obese":30},
{"state":"washington","year":1995,"obese":13.9},
{"state":"washington","year":1996,"obese":15.6},
{"state":"washington","year":1997,"obese":15.2},
{"state":"washington","year":1998,"obese":18.1},
{"state":"washington","year":1999,"obese":18.2},
{"state":"washington","year":2000,"obese":18.8},
{"state":"washington","year":2001,"obese":19.3},
{"state":"washington","year":2002,"obese":21.3},
{"state":"washington","year":2003,"obese":21.7},
{"state":"washington","year":2004,"obese":22.2},
{"state":"washington","year":2005,"obese":23.3},
{"state":"washington","year":2006,"obese":24.2},
{"state":"washington","year":2007,"obese":25.9},
{"state":"washington","year":2008,"obese":26},
{"state":"washington","year":2009,"obese":26.9},
{"state":"washington","year":2010,"obese":26.2},
{"state":"west virginia","year":1995,"obese":18.3},
{"state":"west virginia","year":1996,"obese":19.9},
{"state":"west virginia","year":1997,"obese":20.6},
{"state":"west virginia","year":1998,"obese":23.9},
{"state":"west virginia","year":1999,"obese":24.6},
{"state":"west virginia","year":2000,"obese":23.2},
{"state":"west virginia","year":2001,"obese":25.1},
{"state":"west virginia","year":2002,"obese":27.6},
{"state":"west virginia","year":2003,"obese":27.7},
{"state":"west virginia","year":2004,"obese":27.6},
{"state":"west virginia","year":2005,"obese":30.6},
{"state":"west virginia","year":2006,"obese":31},
{"state":"west virginia","year":2007,"obese":30.3},
{"state":"west virginia","year":2008,"obese":31.9},
{"state":"west virginia","year":2009,"obese":31.7},
{"state":"west virginia","year":2010,"obese":32.9},
{"state":"wisconsin","year":1995,"obese":16},
{"state":"wisconsin","year":1996,"obese":17.1},
{"state":"wisconsin","year":1997,"obese":16.6},
{"state":"wisconsin","year":1998,"obese":18.3},
{"state":"wisconsin","year":1999,"obese":19.9},
{"state":"wisconsin","year":2000,"obese":20},
{"state":"wisconsin","year":2001,"obese":22.4},
{"state":"wisconsin","year":2002,"obese":21.6},
{"state":"wisconsin","year":2003,"obese":20.9},
{"state":"wisconsin","year":2004,"obese":23.2},
{"state":"wisconsin","year":2005,"obese":24.4},
{"state":"wisconsin","year":2006,"obese":26.6},
{"state":"wisconsin","year":2007,"obese":25.3},
{"state":"wisconsin","year":2008,"obese":26.1},
{"state":"wisconsin","year":2009,"obese":29.2},
{"state":"wisconsin","year":2010,"obese":26.9},
{"state":"wyoming","year":1995,"obese":14.3},
{"state":"wyoming","year":1996,"obese":15.1},
{"state":"wyoming","year":1997,"obese":15},
{"state":"wyoming","year":1998,"obese":15.1},
{"state":"wyoming","year":1999,"obese":16.9},
{"state":"wyoming","year":2000,"obese":18},
{"state":"wyoming","year":2001,"obese":19.7},
{"state":"wyoming","year":2002,"obese":19.5},
{"state":"wyoming","year":2003,"obese":20.1},
{"state":"wyoming","year":2004,"obese":20.8},
{"state":"wyoming","year":2005,"obese":24.2},
{"state":"wyoming","year":2006,"obese":23.3},
{"state":"wyoming","year":2007,"obese":24.5},
{"state":"wyoming","year":2008,"obese":25.2},
{"state":"wyoming","year":2009,"obese":25.4},
{"state":"wyoming","year":2010,"obese":25.7}]
.map {
display: block;
position: absolute;
background: #fff;
width: 100%;
height: 100%;
margin: 0;
}
path.state {
stroke: #666;
stroke-width: 1;
fill-opacity: 0.10
}
path.state:hover {
stroke: #000;
}
.year {
font-family: 'Helvetica neue';
font-size: 90px;
fill: #ffffff;
stroke: #000
}
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment