Skip to content

Instantly share code, notes, and snippets.

@AlexAbes
AlexAbes / Vega grouped vertical bar chart
Created April 5, 2019 21:18
Converted the Vega example grouped horizontal bar chart into a vertical one. https://vega.github.io/vega/examples/grouped-bar-chart/
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 450,
"height": 350,
"padding": 5,
"data": [
{
"name": "table",
"values": [
@AlexAbes
AlexAbes / geoData.json
Created April 7, 2017 01:32 — forked from blehman/geoData.json
d3 map (basic)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AlexAbes
AlexAbes / continental-usa-states-bb
Created February 10, 2016 21:37 — forked from mishari/continental-usa-states-bb
Bounding box of states in USA from OSM's Nominatim
[{"place_id":"97994878","licence":"Data \u00a9 OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"relation","osm_id":"161950","boundingbox":["30.1375217437744","35.0080299377441","-88.4731369018555","-84.8882446289062"],"lat":"33.2588817","lon":"-86.8295337","display_name":"Alabama, United States of America","place_rank":"8","category":"boundary","type":"administrative","importance":0.83507032450272,"icon":"http:\/\/nominatim.openstreetmap.org\/images\/mapicons\/poi_boundary_administrative.p.20.png"}]
[{"place_id":"97421560","licence":"Data \u00a9 OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"relation","osm_id":"162018","boundingbox":["31.3321762084961","37.0042610168457","-114.818359375","-109.045196533203"],"lat":"34.395342","lon":"-111.7632755","display_name":"Arizona, United States of America","place_rank":"8","category":"boundary","type":"administrative","importance":0.83922181098242,"icon":"http:\/\/nominatim.openst