Created
August 29, 2018 19:11
-
-
Save matthewturk/e3808b4172b7f80141788b45236831ca to your computer and use it in GitHub Desktop.
Simple Vega-Lite plot
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", | |
"description": "Messing around!", | |
"data": { | |
"url": "data/movies.json" | |
}, | |
"transform": [ | |
{"filter": "datum.MPAA_Rating != null"} | |
], | |
"hconcat": [ | |
{ | |
"mark": "bar", | |
"encoding": { | |
"x": { | |
"field": "MPAA_Rating", | |
"type": "ordinal" | |
}, | |
"y": { | |
"aggregate": "count", | |
"type": "quantitative" | |
} | |
} | |
}, | |
{ | |
"mark": "bar", | |
"encoding": { | |
"x": { | |
"field": "IMDB_Rating", | |
"type": "quantitative", | |
"bin": true | |
}, | |
"y": { | |
"aggregate": "count", | |
"type": "quantitative" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment