Skip to content

Instantly share code, notes, and snippets.

@flother
Last active March 11, 2016 00:01
Show Gist options
  • Save flother/569b14de04a3c6a878a0 to your computer and use it in GitHub Desktop.
Save flother/569b14de04a3c6a878a0 to your computer and use it in GitHub Desktop.
The Counted in southern California
license: cc-by-sa-4.0
border: no
height: 600

People killed by police and other law enforcement agencies in Los Angeles and southern California throughout 2015, broken down by race. The data comes from [The Counted] 1, a project by the Guardian. The map was created using [Vega] 2.

Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>The Counted</title>
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.16/d3.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/vega/2.5.1/vega.min.js"></script>
</head>
<body>
<div id="vis"></div>
<script type="text/javascript">
function parse(spec) {
vg.parse.spec(spec,
function (error, chart) {
chart({el:"#vis"}).update();
});
}
parse("spec.json");
</script>
</body>
</html>
Display the source blob
Display the rendered blob
Raw
{"type":"Topology","objects":{"los_angeles":{"type":"GeometryCollection","geometries":[{"type":"Polygon","arcs":[[0],[1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11]]}]}},"arcs":[[[0,7582],[0,114],[182,-39],[27,15],[9,31],[-2,10],[9,64],[0,5],[-36,0],[0,-29],[-187,0],[2,67],[3,118],[0,2],[0,40],[98,0],[1,57],[185,0],[17,55],[-69,-7],[-60,0],[-16,34],[10,65],[11,37],[91,2],[0,38],[85,0],[20,65],[18,59],[15,49],[317,-5],[1,6],[4,7],[-39,0],[0,3],[-1,26],[0,24],[-2,205],[1,133],[-14,79],[-3,19],[-1,1],[5,1],[144,81],[178,26],[216,21],[184,-51],[2,3],[46,39],[23,13],[17,35],[-6,34],[14,1],[5,15],[-18,55],[15,78],[5,92],[46,88],[68,4],[215,-64],[104,-75],[25,4],[19,7],[85,54],[45,6],[47,1],[65,-44],[54,5],[89,17],[112,15],[-46,71],[-19,10],[12,28],[-67,121],[31,36],[-15,27],[56,-10],[183,-34],[163,99],[59,36],[276,168],[3,2],[12,8],[72,44],[220,-103],[163,-6],[297,-3],[185,-1],[578,-2],[196,0],[-15,-68],[70,-10],[69,-4],[27,19],[-27,63],[164,-1],[5,-122],[43,-12],[40,-28],[74,4],[12,1],[-20,-44],[-4,0],[-2,-1],[-16,0],[-46,-11],[0,-11],[-3,-88],[-58,0],[3,-34],[-34,0],[-2,-113],[89,-1],[-3,-57],[-44,0],[-1,-56],[-109,2],[2,-29],[-27,2],[19,-46],[37,-29],[26,-20],[89,8],[7,24],[2,8],[6,2],[-2,25],[12,36],[11,15],[54,-1],[5,58],[59,-1],[1,29],[122,0],[0,-29],[88,0],[-1,-47],[11,-39],[-88,0],[-1,-28],[45,0],[-22,-78],[169,-23],[10,2],[34,3],[20,-13],[23,0],[-18,5],[0,3],[0,17],[-3,23],[75,4],[-8,-14],[-21,-46],[11,-3],[17,7],[7,14],[44,-45],[303,-19],[0,48],[486,0],[-2,57],[164,0],[32,0],[339,1],[2,113],[255,-19],[-8,-217],[254,-4],[3,57],[677,-2],[-2,-229],[-347,2],[4,-236],[-171,2],[-1,-31],[-27,6],[14,-109],[-1,-37],[0,-19],[-14,7],[-1,-151],[0,-9],[-1,-139],[-475,-3],[-735,-4],[-167,-2],[37,-57],[14,-34],[-7,-2],[-23,-13],[7,-4],[-17,-15],[-16,-33],[-40,-5],[-3,-70],[-27,0],[-33,0],[-130,2],[-13,0],[-10,0],[-236,3],[6,-32],[10,-54],[-71,-3],[-88,0],[0,-76],[179,-28],[0,-4],[27,-150],[7,-29],[5,-29],[5,-28],[6,-29],[16,-86],[27,-51],[1,-2],[4,-11],[24,-45],[3,-5],[-26,0],[-22,0],[1,-58],[78,1],[19,-36],[7,-12],[5,-10],[31,-59],[5,-7],[32,-62],[56,-107],[17,8],[39,24],[27,10],[41,-3],[122,41],[30,8],[111,82],[63,35],[42,4],[44,5],[36,-29],[57,-8],[52,108],[30,10],[12,-4],[73,-37],[30,-4],[78,-14],[62,17],[80,-48],[41,0],[174,9],[23,-19],[19,-30],[22,0],[26,-1],[41,-54],[29,-47],[48,-75],[34,-53],[15,-25],[37,-58],[69,-102],[37,-41],[48,-42],[4,-4],[60,-42],[2,1],[58,33],[-42,54],[1,2],[282,28],[65,7],[-22,95],[4,21],[14,7],[40,1],[0,17],[70,0],[14,0],[30,0],[-27,39],[7,34],[0,40],[0,52],[4,-3],[-2,14],[18,7],[30,41],[17,-5],[280,-51],[30,3],[34,13],[44,3],[54,50],[88,16],[0,-41],[279,1],[-7,-45],[-7,-13],[67,-51],[14,-16],[-1,-1],[-4,-4],[-31,-6],[-5,-2],[-14,-12],[-14,-2],[-4,0],[-29,-9],[-2,-43],[11,-2],[-16,-35],[62,-42],[1,-24],[50,-51],[72,3],[-8,-55],[81,26],[5,16],[2,3],[6,2],[11,2],[8,4],[12,6],[12,0],[16,-6],[13,-3],[16,-5],[26,3],[2,-12],[-41,-18],[4,-6],[8,-33],[-24,-63],[-76,-66],[-66,-19],[-14,-6],[-10,-19],[-12,-8],[0,-100],[0,-33],[0,-53],[167,1],[20,0],[122,1],[37,0],[68,0],[29,0],[-12,-30],[-62,-35],[-9,-5],[-22,-13],[2,-49],[1,-23],[0,-40],[1,-83],[-1,-41],[1,-50],[-5,-5],[-20,-6],[4,-29],[-3,-16],[-16,-29],[1,-4],[-45,-75],[-10,-42],[-13,0],[-64,0],[-70,-7],[-63,7],[-102,-8],[-73,0],[-148,0],[0,-28],[1,-74],[1,-47],[0,-28],[0,-23],[0,-15],[1,-33],[-2,-31],[1,-12],[0,-14],[1,-32],[1,-29],[0,-8],[0,-34],[1,-31],[21,7],[0,-18],[-18,-1],[-3,-33],[1,-50],[0,-11],[1,-52],[0,-58],[0,-23],[1,-36],[16,-59],[-14,1],[-184,14],[-25,3],[-43,9],[-6,-27],[-33,-1],[-22,35],[-88,-11],[-90,21],[-51,-11],[-54,0],[-332,-3],[10,-171],[16,-152],[9,-77],[-21,0],[-42,0],[-39,1],[-90,0],[-84,0],[-85,0],[0,-2],[0,-94],[0,-24],[0,-29],[1,-83],[0,-57],[0,-22],[0,-28],[0,-8],[0,-44],[0,-15],[0,-14],[0,-43],[10,0],[-1,-57],[0,-29],[0,-23],[36,-35],[11,4],[-1,-32],[-1,-95],[87,0],[3,92],[0,4],[3,64],[27,14],[63,0],[19,-16],[26,0],[66,0],[89,0],[-1,-43],[0,-36],[66,0],[0,-16],[-82,-2],[0,-24],[91,1],[13,-40],[15,-67],[-9,-24],[-18,-49],[-2,-4],[-9,-25],[-4,-12],[11,-42],[-65,3],[-105,4],[-16,1],[-124,0],[-59,-1],[-98,0],[0,-1],[9,-22],[5,-60],[0,-3],[0,-4],[-16,-10],[-46,0],[-90,0],[-75,0],[-85,0],[-71,3],[-13,0],[-67,0],[-18,-13],[-3,10],[-40,1],[-16,0],[-16,0],[-1,-34],[-1,-73],[-1,-114],[0,-115],[-1,-72],[-18,-6],[9,-182],[3,-57],[10,-142],[9,-3],[1,-156],[-66,-23],[-5,-13],[-82,-21],[-22,-7],[1,-71],[102,-1],[-15,-30],[0,-95],[-257,1],[0,-42],[0,-27],[0,-101],[0,-7],[1,-110],[0,-39],[0,-18],[0,-28],[2,-7],[0,-41],[-4,-96],[15,-8],[3,-1],[-9,-108],[-6,-45],[-1,-88],[63,0],[136,-1],[43,1],[4,-3],[69,10],[150,6],[208,8],[1,29],[-1,56],[13,1],[146,3],[-38,-84],[32,1],[211,8],[165,7],[146,-125],[55,119],[51,67],[13,43],[-29,63],[-52,208],[-1,22],[29,62],[30,-64],[10,-17],[0,-2],[2,-43],[40,-153],[0,-57],[0,-60],[0,-5],[-67,-149],[-21,-61],[-11,-7],[3,-11],[129,-112],[-482,-296],[92,-88],[-160,-38],[100,-193],[234,-453],[-23,-6],[1,-1],[-228,-60],[-61,-16],[-283,-74],[-143,-16],[-41,13],[-107,35],[-15,3],[-123,25],[-22,-15],[-9,-6],[-41,-27],[-8,-5],[-87,-4],[-38,-2],[-6,11],[-26,47],[-267,66],[-28,9],[-50,16],[-65,-14],[-56,56],[-17,5],[-21,7],[-35,11],[-172,55],[64,85],[23,30],[34,0],[111,0],[0,23],[2,3],[3,1],[9,3],[5,3],[3,3],[1,5],[25,0],[1,45],[-36,14],[36,27],[-7,6],[-4,43],[-17,8],[-2,7],[2,8],[6,10],[4,0],[19,5],[0,44],[0,17],[8,0],[135,7],[29,-8],[7,43],[1,9],[2,33],[0,34],[1,54],[157,0],[-17,44],[-139,0],[0,34],[-51,6],[19,50],[36,101],[-2,37],[48,0],[-26,67],[-33,-2],[-9,46],[24,27],[0,37],[0,13],[5,30],[-5,11],[0,32],[-1,68],[0,32],[0,50],[-1,20],[-1,79],[-7,19],[19,9],[-11,32],[-3,26],[1,12],[0,57],[-1,68],[0,22],[-1,9],[0,36],[0,73],[-2,112],[0,12],[0,2],[0,58],[0,45],[0,33],[0,9],[-1,173],[0,25],[0,32],[0,58],[129,1],[62,0],[1,0],[3,77],[94,-1],[-3,-64],[-70,-14],[119,0],[28,13],[-7,100],[-3,64],[-2,38],[-2,24],[0,14],[-3,57],[-3,58],[-3,57],[-1,27],[2,54],[0,68],[1,115],[0,17],[0,16],[0,81],[1,58],[1,57],[0,57],[0,19],[0,39],[-2,57],[0,43],[0,14],[0,27],[0,38],[0,50],[0,24],[0,27],[0,7],[0,10],[0,19],[0,29],[0,35],[0,12],[1,59],[-118,0],[-51,-1],[0,-7],[0,-49],[0,-25],[0,-25],[0,-10],[0,-33],[-43,-22],[0,-29],[0,-21],[-43,0],[-10,0],[0,-36],[0,-21],[-75,0],[0,-29],[0,-29],[-85,0],[0,58],[0,57],[-85,0],[0,91],[0,24],[0,57],[0,26],[-1,31],[1,58],[0,29],[0,29],[0,57],[-81,-2],[-9,2],[-38,0],[-42,0],[-1,-58],[-127,0],[0,57],[0,29],[-43,0],[0,28],[1,58],[0,39],[0,18],[-66,0],[-41,0],[-21,0],[-71,-1],[-38,0],[-52,0],[-167,0],[-47,0],[-183,-1],[2,-27],[3,-42],[0,-35],[0,-34],[0,-9],[0,-61],[0,-2],[-1,-5],[-4,0],[-9,0],[-39,-6],[30,-68],[-93,-31],[-11,-6],[-22,-17],[-15,-21],[-6,-17],[4,-77],[118,1],[49,0],[0,-42],[0,-73],[0,-36],[0,-78],[0,-115],[32,1],[1,-31],[-117,0],[-79,0],[-6,24],[-3,6],[-336,0],[-116,9],[-38,-1],[-144,0],[-89,0],[-199,-2],[-51,-5],[22,-117],[21,0],[0,-28],[42,0],[1,-29],[42,0],[0,-57],[-147,-1],[-5,8],[-101,155],[-141,217],[-1,2],[-112,168],[-48,72],[-100,110],[-94,102],[-156,146],[-86,81],[-69,64],[-134,125],[69,30],[28,12],[17,8],[20,8],[59,25],[66,29],[1,-1],[25,11],[93,41],[104,44],[49,21],[4,2],[166,71],[12,1],[66,32],[-98,94],[-5,9],[-65,64],[-11,7],[-6,6],[-77,28],[-13,30],[-75,26],[-61,42],[-61,42],[-62,43],[-1,-1],[-54,44],[-15,4],[-60,35],[-15,-4],[-2,-10],[-11,1],[-20,-20],[-73,-47],[-100,68],[-57,40],[-40,28],[-12,6],[-185,-154],[-69,-10],[-3,-60],[-20,-51],[0,-1],[-13,-3],[-58,-41],[-89,-72],[-51,30],[-4,1],[-320,121],[-136,51],[-116,27],[-114,-38],[-19,6],[-122,41],[-97,10],[0,3],[-54,81],[-5,79],[-5,278],[-343,49],[-214,36],[18,24],[47,62],[597,791],[-6,2],[-240,74],[-247,77],[-299,92],[-4,1],[-74,23],[-50,15],[-54,17],[0,-32],[-273,0],[-44,60],[-17,-8],[-124,111],[-14,-4],[-41,-11],[0,20],[0,4],[0,3],[21,6],[5,3],[-1,1],[1,2],[4,0],[-43,45],[-70,1],[0,58],[-170,1],[0,58],[-85,0],[0,31],[1,68],[0,17],[-160,0],[-27,0],[0,116]],[[3903,5636],[47,-43],[73,-70],[21,-19],[30,-28],[41,-39],[56,18],[39,-38],[24,12],[51,25],[-14,41],[0,22],[68,31],[-26,24],[-15,14],[-106,99],[-24,25],[-6,19],[-96,-21],[87,-82],[-71,-35],[-45,32],[-35,54],[-4,15],[-44,40],[-27,12],[-42,-29],[18,-79]],[[4020,4348],[44,-47],[44,-41],[52,-65],[31,-41],[18,-22],[13,-15],[6,-8],[346,159],[25,12],[-11,11],[-125,79],[-46,42],[-90,14],[-172,34],[-25,-13],[-40,-21],[-99,-51],[29,-27]],[[4136,9174],[72,-55],[48,-37],[55,-42],[64,-49],[34,20],[25,15],[98,59],[33,-22],[8,-1],[17,11],[42,32],[64,38],[64,37],[64,38],[64,38],[-23,26],[55,33],[-48,37],[-61,-29],[-40,31],[-57,43],[-56,43],[-71,42],[-116,-84],[-58,-42],[-14,-8],[-44,-34],[-14,10],[-30,-22],[-35,-25],[-12,-28],[-37,-21],[-23,-13],[-68,-41]],[[4308,4528],[3,-3],[129,49],[63,26],[92,-61],[31,-35],[23,8],[-9,6],[-7,36],[-5,29],[-6,34],[20,1],[39,3],[85,7],[71,7],[13,4],[7,4],[32,25],[4,2],[58,58],[44,-22],[45,-24],[7,7],[66,-27],[61,67],[51,-23],[7,-6],[-17,-3],[-3,0],[-2,-8],[-6,-8],[-7,-7],[7,-2],[-3,-23],[-20,-29],[-14,-14],[-21,-10],[-7,-3],[-8,-9],[-10,-15],[-8,-6],[-30,-10],[-8,-3],[3,-2],[50,-24],[-21,-17],[63,-31],[34,-17],[50,26],[73,-65],[1,-1],[-68,-10],[14,-18],[58,-22],[40,-15],[116,-44],[1,-4],[4,6],[14,-5],[108,-6],[163,15],[0,40],[0,35],[27,15],[178,0],[55,0],[61,1],[52,0],[0,63],[0,29],[0,7],[128,1],[24,0],[18,0],[29,-15],[92,0],[9,8],[0,65],[0,51],[12,0],[88,0],[13,58],[0,24],[-19,30],[-26,17],[-9,10],[-19,23],[-9,27],[-44,-28],[-25,-10],[-32,-15],[-7,-2],[-17,-4],[-103,2],[-72,0],[-53,-37],[-42,-27],[-36,-55],[-8,34],[-18,35],[33,97],[-2,24],[-76,-13],[-24,-32],[-46,-12],[-42,24],[9,135],[-116,3],[-4,-61],[-4,-1],[-20,47],[29,57],[-63,-4],[0,-3],[-32,-1],[-3,-1],[-6,2],[-10,7],[-23,13],[13,0],[15,-1],[2,31],[-5,0],[8,12],[-1,2],[8,5],[12,20],[12,35],[-13,12],[16,32],[50,28],[34,-8],[2,3],[20,37],[23,41],[-123,-42],[-55,-12],[-19,-4],[-36,-7],[-52,-12],[-69,-18],[-74,-34],[-21,-10],[-5,-2],[-9,-10],[-27,-8],[-71,-33],[16,-18],[2,-2],[-75,-9],[16,-17],[-40,-21],[-53,-26],[-4,-3],[-28,28],[-77,-35],[-38,-18],[-84,-39],[-22,-10],[-28,-13],[-34,-16],[42,-19],[37,-37],[-62,-30],[-14,-7],[59,-60],[-36,-26],[-32,-7],[-83,-7],[-11,10],[-38,41],[-46,-19],[10,-10],[-62,-26],[-24,-10],[-11,-5],[-45,-14],[-16,-6],[-79,-32],[-17,27],[-27,-15],[-73,-16],[25,-41]],[[4701,6086],[1,-91],[0,-9],[51,1],[31,0],[-2,-50],[-14,-11],[11,-32],[3,-5],[-8,-19],[28,-10],[18,6],[25,-44],[23,-5],[41,-56],[1,-27],[38,-44],[14,-14],[28,-53],[13,6],[17,-20],[70,-80],[17,-19],[4,-4],[8,5],[-10,18],[4,47],[48,0],[0,-2],[2,0],[2,-2],[6,3],[3,-2],[6,3],[66,0],[0,-1],[11,1],[36,0],[55,0],[40,0],[38,0],[40,0],[81,0],[1,36],[1,56],[63,0],[58,1],[1,-57],[22,1],[3,8],[61,30],[12,6],[4,26],[-4,6],[-36,46],[-20,27],[-8,11],[-4,8],[-1,0],[-10,-12],[-124,6],[-21,0],[0,38],[-58,0],[-58,0],[-20,0],[0,23],[0,46],[19,0],[118,-1],[63,4],[21,-4],[11,0],[32,3],[-1,57],[38,-1],[21,30],[0,-30],[76,0],[0,48],[-131,-2],[0,28],[1,60],[11,5],[76,21],[0,-23],[1,-53],[14,0],[30,2],[-1,24],[23,0],[41,0],[10,29],[52,0],[21,-3],[25,-25],[79,0],[61,-1],[20,0],[8,0],[0,29],[81,0],[90,-1],[13,1],[0,28],[0,57],[-14,0],[-74,0],[-8,0],[-67,1],[-42,0],[-22,0],[-32,0],[-8,0],[-87,1],[0,1],[-2,42],[-84,-1],[-43,0],[-16,11],[-73,-35],[-91,-22],[-37,-20],[-12,-4],[-25,-9],[-43,25],[-21,-2],[-11,0],[-10,-6],[-20,-34],[-181,0],[-13,81],[22,0],[64,46],[0,113],[1,2],[14,17],[0,4],[4,9],[11,15],[-20,51],[-97,0],[-51,-15],[-17,-9],[27,-34],[-46,0],[3,-233],[-9,-3],[-2,1],[-2,4],[-3,1],[-2,-1],[-3,-4],[-2,-1],[-6,-3],[-1,1],[-14,10],[-43,36],[-1,77],[-64,0],[-6,-58],[-2,-4],[5,-3],[4,-3],[-5,-1],[-3,-9],[-9,-7],[2,-3],[-44,-44],[-5,-14],[-1,4],[-8,4],[-6,4],[-8,7],[-15,10],[-2,3],[-126,0],[-45,1],[1,-58],[-85,-9],[0,-11]],[[4885,6367],[4,-26],[0,-5],[149,-1],[0,58],[-40,1],[0,29],[-42,0],[0,20],[-37,0],[-4,8],[-28,0],[-1,-73],[-1,-11]],[[4942,4420],[39,-52],[49,11],[21,-1],[-14,10],[-71,49],[-24,-17]],[[5962,6865],[73,12],[126,-84],[10,-1],[56,-43],[6,24],[45,28],[57,56],[-35,66],[-13,0],[-239,15],[-65,-10],[6,-26],[-27,-37]],[[6040,5869],[20,1],[0,6],[-20,0],[0,-7]],[[6999,535],[28,-1],[128,0],[43,-1],[43,2],[0,28],[1,57],[-25,2],[-18,12],[-12,-12],[-42,-1],[0,-29],[-15,-34],[-35,9],[0,25],[-87,2],[-9,-59]],[[7193,2263],[43,-1],[-1,110],[1,65],[-43,0],[0,-174]]],"transform":{"scale":[0.00005129232923292345,0.00006331903190318979],"translate":[-118.668162,33.70403]}}
{
"width": 780,
"height": 600,
"padding": {"top": 0, "right": 120, "bottom": 0, "left": 0},
"data": [
{
"name": "us",
"url": "us.json",
"format": {"type": "topojson", "feature": "us"},
"transform": [{
"type": "geopath",
"scale": 24000,
"center": [-118.3, 34.25]
}]
},
{
"name": "urban_area",
"url": "urban_area.json",
"format": {"type": "topojson", "feature": "urban_area"},
"transform": [{
"type": "geopath",
"scale": 24000,
"center": [-118.3, 34.25]
}]
},
{
"name": "counties",
"url": "counties.json",
"format": {"type": "topojson", "feature": "counties"},
"transform": [{
"type": "geopath",
"scale": 24000,
"center": [-118.3, 34.25]
}]
},
{
"name": "los_angeles",
"url": "los_angeles.json",
"format": {"type": "topojson", "feature": "los_angeles"},
"transform": [{
"type": "geopath",
"scale": 24000,
"center": [-118.3, 34.25]
}]
},
{
"name": "cities",
"values": [
{"name": "Los Angeles city limits", "lon": -118.2, "lat": 34.31, "opacity": 0.8},
{"name": "Downtown", "lon": -118.238, "lat": 34.057, "opacity": 0.2},
{"name": "Long Beach", "lon": -118.12, "lat": 33.73, "opacity": 0.2},
{"name": "Anaheim", "lon": -117.889, "lat": 33.87, "opacity": 0.2},
{"name": "Santa Ana", "lon": -117.83, "lat": 33.775, "opacity": 0.2},
{"name": "Irvine", "lon": -117.823, "lat": 33.669, "opacity": 0.2},
{"name": "Glendale", "lon": -118.20, "lat": 34.173, "opacity": 0.2},
{"name": "Pomona", "lon": -117.756, "lat": 34.09, "opacity": 0.2},
{"name": "Torrance", "lon": -118.42, "lat": 33.834722, "opacity": 0.2},
{"name": "Downey", "lon": -118.121, "lat": 33.938, "opacity": 0.2},
{"name": "Arcadia", "lon": -118.036, "lat": 34.133, "opacity": 0.2},
{"name": "Fontana", "lon": -117.51, "lat": 34.1, "opacity": 0.2},
{"name": "Oxnard", "lon": -119.183, "lat": 34.191, "opacity": 0.2},
{"name": "Lancaster", "lon": -118.15, "lat": 34.683333, "opacity": 0.2}
],
"transform": [
{
"type": "geo",
"lon": "lon", "lat": "lat",
"scale": 24000,
"center": [-118.3, 34.25]
}
]
},
{
"name": "thecounted",
"url": "thecounted.csv",
"format": {"type": "csv"},
"transform": [
{
"type": "geo",
"lon": "longitude", "lat": "latitude",
"scale": 24000,
"center": [-118.3, 34.25]
}
]
}
],
"scales": [
{
"name": "race",
"type": "ordinal",
"domain": {"data": "thecounted", "field": "race"},
"range": ["#F48500", "#5080EA", "#e85be8", "#1DA827"]
}
],
"legends": [
{"fill": "race", "title": "Race"}
],
"marks": [
{
"type": "path",
"from": {"data": "us"},
"properties": {
"enter": {
"fill": {"value": "#f0f0f0"},
"path": {"field": "layout_path"}
}
}
},
{
"type": "path",
"from": {"data": "urban_area"},
"properties": {
"enter": {
"fill": {"value": "#d7d8d6"},
"path": {"field": "layout_path"}
}
}
},
{
"type": "path",
"from": {"data": "counties"},
"properties": {
"enter": {
"stroke": {"value": "#fff"},
"path": {"field": "layout_path"}
}
}
},
{
"type": "path",
"from": {"data": "los_angeles"},
"properties": {
"enter": {
"stroke": {"value": "#5e5e5e"},
"path": {"field": "layout_path"}
}
}
},
{
"type": "symbol",
"from": {"data": "thecounted"},
"properties": {
"enter": {
"x": {"field": "layout_x"},
"y": {"field": "layout_y"},
"size": {"value": 25},
"shape": {"value": "cross"},
"fill": {"field": "race", "scale": "race"},
"fillOpacity": {"value": 0.6},
"strokeWidth": {"value": 0}
}
}
},
{
"type": "text",
"from": {"data": "cities"},
"properties": {
"enter": {
"text": {"template": "{{datum.name|upper}}"},
"x": {"field": "layout_x"},
"y": {"field": "layout_y"},
"align": {"value": "center"},
"baseline": {"value": "middle"},
"fontSize": {"value": 10},
"fontWeight": {"value": "bold"},
"fillOpacity": {"value": 0},
"stroke": {"value": "#fff"},
"strokeWidth": {"value": 2},
"strokeOpacity": {"value": 0.2}
}
}
},
{
"type": "text",
"from": {"data": "cities"},
"properties": {
"enter": {
"text": {"template": "{{datum.name|upper}}"},
"x": {"field": "layout_x"},
"y": {"field": "layout_y"},
"align": {"value": "center"},
"baseline": {"value": "middle"},
"fontSize": {"value": 10},
"fontWeight": {"value": "bold"},
"fill": {"value": "#000"},
"fillOpacity": {"field": "opacity"}
}
}
},
{
"type": "text",
"from": {"data": "thecounted"},
"properties": {
"update": {
"text": {"template": "{{tooltip.name|upper}}, {{tooltip.age}}"},
"x": {"signal": "tooltip.layout_x"},
"y": {"signal": "tooltip.layout_y"},
"align": {"value": "center"},
"baseline": {"value": "bottom"},
"dy": {"value": -5},
"fontSize": {"value": 14},
"fillOpacity": {"value": 0},
"stroke": {"value": "#fff"},
"strokeWidth": {"value": 3},
"strokeOpacity": [
{ "test": "datum._id != tooltip._id",
"value": 0
},
{"value": 0.4}
]
}
}
},
{
"type": "text",
"from": {"data": "thecounted"},
"properties": {
"update": {
"text": {"template": "{{tooltip.name|upper}}, {{tooltip.age}}"},
"x": {"signal": "tooltip.layout_x"},
"y": {"signal": "tooltip.layout_y"},
"fillOpacity": [
{ "test": "datum._id != tooltip._id",
"value": 0
},
{"value": 1}
],
"align": {"value": "center"},
"baseline": {"value": "bottom"},
"dy": {"value": -5},
"fontSize": {"value": 14},
"fill": {"value": "#5e5e5e"}
}
}
}
],
"signals": [
{
"name": "tooltip",
"init": {},
"streams": [
{"type": "symbol:mouseover", "expr": "datum"},
{"type": "symbol:mouseout", "expr": "{}"}
]
}
]
}
uid name age race longitude latitude
12 Brian Pickett 26 Black -118.2455 33.9206
27 Brian Barbosa 23 Hispanic/Latino -118.1889 33.9525
52 Pablo Meza 24 Hispanic/Latino -118.2324 34.0362
101 Paul Johnson 59 White -117.6503 33.9534
114 Dean Bucheit 64 White -118.4318 33.9774
124 Jonathan Harden 23 White -117.3321 34.1647
166 Ernesto Javier Canepa Diaz 27 Hispanic/Latino -117.8776 33.7471
174 Charly 'Africa' Keunang 43 Black -118.2453 34.0424
184 Sergio Navas 34 Hispanic/Latino -118.3435 34.151
194 Monique Deckard 43 Black -117.9401 33.819
202 Edixon Franco 37 Hispanic/Latino -117.6547 34.0501
209 Benito Osorio 39 Hispanic/Latino -117.8677 33.7434
205 Aaron Valdez 25 Hispanic/Latino -118.2178 33.9392
211 Antonio Perez 32 Hispanic/Latino -118.2735 34.0279
214 Salome Rodriguez Jr 23 Hispanic/Latino -117.7509 34.0568
215 Andrew Driver 36 White -117.4297 34.0776
263 Victor Terrazas 28 Hispanic/Latino -118.2915 33.9437
264 Adrian Solis 35 Hispanic/Latino -118.2713 33.7934
267 Meagan Hockaday 26 Black -119.1829 34.2278
285 Robert Washington 37 Black -118.3373 33.9019
296 Paul Anderson 31 Black -117.8517 33.8355
305 Roberto Rodriguez 39 Hispanic/Latino -118.2106 34.0401
326 Ernesto Flores 52 Hispanic/Latino -117.7207 34.0511
340 Luis Molina Martinez 35 Hispanic/Latino -118.205 34.0718
350 Hector Morejon 19 Hispanic/Latino -118.1736 33.7808
351 Andrew Valadez 26 White -118.4532 34.3103
361 Dean Genova 45 White -117.9544 33.7619
382 Thong Kien Ma 32 Other -118.0447 34.0536
384 Brendon Glenn 29 Black -118.4726 33.9872
388 Nephi Arriguin 21 Black -118.0504 33.8744
402 Alec Ouzounian 40 White -117.6131 33.6547
454 Feras Morad 20 Other -118.1393 33.7854
491 Rene Garcia 30 Hispanic/Latino -117.9228 33.8472
529 Adrian Simental 24 Hispanic/Latino -117.9002 34.1283
563 Christian Siqueiros 25 Hispanic/Latino -117.7071 34.0668
561 Arturo Lopez 46 Hispanic/Latino -118.1852 34.6712
562 Cesar Juarez 27 Hispanic/Latino -117.8928 34.0233
571 Johnny Ray Anderson 43 Hispanic/Latino -118.072 33.8335
577 John Berry 31 White -118.124 33.8561
576 Jason Hendley 29 Black -118.4125 34.3232
595 Neil White 38 White -118.3433 34.0603
617 Jason Davis 41 White -118.4702 34.0002
653 Seth Raines 44 White -118.3981 34.1438
667 Oscar Romero 47 Hispanic/Latino -118.0552 33.9725
686 Daniel Avila 55 Hispanic/Latino -117.4636 33.3001
701 Derrick Hunt 28 Black -118.1557 33.8749
718 Redel Jones 30 Black -118.3426 34.0088
730 Oscar Ruiz 44 Hispanic/Latino -117.9957 34.0782
743 Raul Herrera III 17 Hispanic/Latino -117.5932 34.024
769 Manuel Soriano 29 Hispanic/Latino -118.4488 34.2051
798 Luis Wenceslao 32 Hispanic/Latino -117.6468 34.0341
799 Manuel Ornelas 47 Hispanic/Latino -118.1036 33.8154
842 William Chau 59 Other -118.029 34.0788
818 Eddie Tapia 41 Hispanic/Latino -118.1139 33.9551
817 Santino Burce 34 Hispanic/Latino -117.44 34.0707
839 Anthony Camacho 19 Hispanic/Latino -117.3835 34.1106
833 Florencio Chaidez 32 Hispanic/Latino -118.4535 34.2284
840 Carlos Wilhelm 39 Hispanic/Latino -118.2667 34.1326
844 Nicholas Johnson 32 White -117.3719 34.1992
874 Norma Guzman 37 Hispanic/Latino -118.2585 34.0253
887 Christian Pena 26 Hispanic/Latino -117.4031 34.0968
889 James Byrd 45 White -118.4663 34.1866
910 William Combs 38 White -117.6034 34.4013
935 Jonathan Peña 27 Hispanic/Latino -118.384 34.0851
925 Johnny Rangel 25 Hispanic/Latino -117.9161 34.0314
937 Dion Ramirez 54 Black -118.2812 33.935
950 Juan Ulloa 34 Hispanic/Latino -117.34 34.0186
1000 Miguel Cano 34 Hispanic/Latino -118.5117 34.213
1016 Ernesto Gamino 25 Hispanic/Latino -117.5105 34.0286
1017 Ramon Salazar 31 Hispanic/Latino -117.3999 34.0062
1040 Martin Rivera 56 Hispanic/Latino -117.421 34.117
1042 James Hall 46 White -117.4364 34.0627
1066 John Gonzalez 18 Hispanic/Latino -118.0817 33.9174
1094 Nicholas Robertson 28 Black -118.2097 33.9173
1098 Roy Carreon 49 Hispanic/Latino -117.3242 34.1084
1111 Mharloun Saycon 39 Other -118.1889 33.8031
1113 Bryant Duncan 23 White -119.0507 34.2195
1120 Ruben Herrera 26 Hispanic/Latino -118.2914 33.8305
1124 Leroy Browning 30 Black -118.0449 34.5713
1156 Tien Hua 33 Other -118.0562 34.0731
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
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