Skip to content

Instantly share code, notes, and snippets.

@davidanthoff
Created June 12, 2018 00:01
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 davidanthoff/37d07b03e448a7bcf005cce0d73455f1 to your computer and use it in GitHub Desktop.
Save davidanthoff/37d07b03e448a7bcf005cce0d73455f1 to your computer and use it in GitHub Desktop.
{
"$schema": "https://vega.github.io/schema/vega/v3.json",
"autosize": "pad",
"padding": 5,
"width": 200,
"height": 21,
"title": {"text": "Foo"},
"style": "cell",
"data": [{"name": "source"}],
"marks": [
{
"name": "marks",
"type": "symbol",
"style": ["point"],
"from": {"data": "source"},
"encode": {
"update": {
"opacity": {"value": 0.7},
"fill": {"value": "transparent"},
"stroke": {"value": "#4c78a8"},
"x": {"signal": "width", "mult": 0.5},
"y": {"signal": "height", "mult": 0.5}
}
}
}
],
"config": {
"axisY": {"minExtent": 30},
"style": {
"group-title": {"fontSize": 30, "fontWeight": "bold", "fill": "blue"}
}
}
}
{
"config": {
"title": {
"color": "blue",
"fontSize": 30,
"fontWeight": "bold"
}
},
"title": "Foo",
"width": 200,
"mark": "point"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment