Skip to content

Instantly share code, notes, and snippets.

@apatil
Created October 11, 2017 04:04
Show Gist options
  • Save apatil/aeb0a6fdc792aa87ea20c16dcd32f13e to your computer and use it in GitHub Desktop.
Save apatil/aeb0a6fdc792aa87ea20c16dcd32f13e to your computer and use it in GitHub Desktop.
vega-lite-example
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"values": [
{ "x": 0.0, "y": 1.0 },
{ "x": 1.0, "y": 0.0 },
{ "x": 2.0, "y": 1.0 }
]
},
"description": "An example plot to show you how to use this package",
"encoding": {
"x": { "field": "x", "type": "ordinal" },
"y": { "field": "y", "type": "ordinal" }
},
"height": 480,
"mark": "line",
"name": "HelloWorld",
"title": "Example Plot",
"width": 640
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment