Created
August 7, 2017 22:39
-
-
Save daneden/193e7399cefc65cc13d49e66cd865d78 to your computer and use it in GitHub Desktop.
Vega Lite Playground
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", | |
"config": { | |
"cell": { | |
"width": 700, | |
"height": 300 | |
}, | |
"mark": { | |
"color": "#066CD2", | |
"font": "Arial" | |
}, | |
"axis": { | |
"labelFont": "Input Mono Condensed", | |
"titleFont": "Input Mono Condensed" | |
}, | |
"legend": { | |
"labelFont": "Input Mono Condensed", | |
"titleFont": "Input Mono Condensed" | |
} | |
}, | |
"description": "Google's stock price over time.", | |
"data": {"url": "data/stocks.csv"}, | |
"mark": "line", | |
"encoding": { | |
"x": { | |
"field": "date", | |
"type": "temporal", | |
"axis": { | |
"format": "%Y", | |
"labelAngle": 0 | |
} | |
}, | |
"y": {"field": "price", "type": "quantitative"}, | |
"color": { | |
"field": "symbol", | |
"type": "nominal", | |
"scale": { | |
"range": ["#066cd2", "#16afa1", "#7a52dd", "#f77900", "#ce002f"] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment