Skip to content

Instantly share code, notes, and snippets.

@daneden
Created August 7, 2017 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daneden/193e7399cefc65cc13d49e66cd865d78 to your computer and use it in GitHub Desktop.
Save daneden/193e7399cefc65cc13d49e66cd865d78 to your computer and use it in GitHub Desktop.
Vega Lite Playground
{
"$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