Created
June 29, 2017 23:36
-
-
Save pschmied/02c942c802e48a4bfa1006e1bd75a6e7 to your computer and use it in GitHub Desktop.
Vega-lite example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v2.json", | |
"data": {"url": "https://data.seattle.gov/api/views/mags-97de/rows.csv"}, | |
"selection": { | |
"grid": { | |
"type": "interval", "bind": "scales" | |
} | |
}, | |
"mark": "circle", | |
"encoding": { | |
"x": { | |
"field": "Longitude", "type": "quantitative", | |
"scale": {"domain": [-122.2, -122.45]} | |
}, | |
"y": { | |
"field": "Latitude", "type": "quantitative", | |
"scale": {"domain": [47.47, 47.75]} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment