Skip to content

Instantly share code, notes, and snippets.

View lcyraphael's full-sized avatar

Raphael Leung lcyraphael

View GitHub Profile
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"background": "white",
"padding": 5,
"title": {
"anchor": "middle",
"text": "Many arts and cultural charities provide venues and spaces which are now closed."
},
"data": [
{
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"background": "white",
"padding": 5,
"title": {
"anchor": "middle",
"text": "The majority of arts and cultural charities are small and may struggle in the current crisis.",
"frame": "group"
},
"style": "cell",
{
"config": {
"view": {
"width": 400,
"height": 300,
"stroke": "transparent",
"strokeWidth": 0
},
"axis": {
"grid": false,
{
"config": {
"view": {"width": 400, "height": 450},
"axis": {
"labelFont": "Averta",
"labelFontSize": 12,
"labelLimit": 380,
"titleFont": "Averta",
"titleFontSize": 12
},
{
"config": {
"view": {"width": 400, "height": 450},
"axis": {
"labelFont": "Averta",
"labelFontSize": 12,
"labelLimit": 380,
"titleFont": "Averta",
"titleFontSize": 12
},
{
"config": {
"view": {
"width": 400,
"height": 275,
"fill": "lightgray",
"fillOpacity": 0.2,
"stroke": "transparent"
},
"axis": {
{
"config": {
"view": {"width": 350, "height": 300},
"axis": {
"labelFont": "Averta",
"labelFontSize": 12,
"titleFont": "Averta",
"titleFontSize": 12
},
"range": {"category": {"scheme": "set2"}},
This file has been truncated, but you can view the full file.
{
"config": {
"view": {"width": 450, "height": 450},
"axis": {
"labelFont": "Averta",
"labelFontSize": 12,
"titleFont": "Averta",
"titleFontSize": 12
},
"range": {"category": {"scheme": "tableau20"}},
@lcyraphael
lcyraphael / viz2.json
Last active September 24, 2018 13:13
{
"config": {"view": {"width": 400, "height": 300}},
"data": {"name": "data-1701ce6bfb83aecf23b70b684521d1ea"},
"mark": "bar",
"encoding": {
"tooltip": [
{"type": "nominal", "field": "purpose"},
{"type": "quantitative", "field": "count"}
],
"x": {"type": "nominal", "field": "purpose"},
{
"mark": "bar",
"encoding": {
"x": {"field": "index", "type": "nominal"},
"y": {"field": "status", "type": "quantitative"}
},
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"width": 450,
"height": 300,
"selection": {