Skip to content

Instantly share code, notes, and snippets.

@willium
Last active March 12, 2020 20:38
Show Gist options
  • Save willium/3482266ee7c457142aecb608afb07d19 to your computer and use it in GitHub Desktop.
Save willium/3482266ee7c457142aecb608afb07d19 to your computer and use it in GitHub Desktop.
{
"countTitle": "COUNT",
"numberFormat": "s",
"title": {
"anchor": "middle",
"align": "left",
"font": "Inter",
"fontSize": 18,
"fontWeight": 600,
"offset": 20
},
"axis": {
"domain": false,
"labelFlush": false,
"labelFont": "IBM Plex Mono",
"labelFontSize": 12,
"labelPadding": 15,
"labelSeparation": 5,
"ticks": false,
"titlePadding": 20,
"titleFont": "Inter",
"titleFontSize": 12,
"titleFontWeight": 600
},
"axisY": {
"gridDash": [1,4]
},
"axisX": {
"gridDash": [1,4],
"labelAngle": 0
},
"header": {
"labelFont": "Inter",
"labelFontSize": 12,
"labelFontWeight": 600
},
"legend": {
"title": null,
"direction": "horizontal",
"titleAnchor": "start",
"titleBaseline": "inline",
"titlePadding": 0,
"titleFont": "Inter",
"titleFontSize": 12,
"titleFontWeight": 500,
"orient": "top",
"labelFont": "IBM Plex Mono",
"gridAlign": "each",
"columnPadding": 20,
"labelFontSize": 12,
"symbolSize": 200
},
"mark": {
},
"area": {
"fill": "#DE3F2A",
"fillOpacity": 0.5
},
"bar": {
"binSpacing": 3,
"stroke": "#FFFFFF",
"strokeWidth": 2,
"discreteBandSize": 24
},
"tick": {
"bandSize": 30,
"opacity": 0.5
},
"style": {
},
"range": {
"category": {
"scheme": "category20"
}
},
"scale": {
},
"projection": {},
"selection": {},
"view": {
"stroke": null,
"step": 48,
"fill": "#FFF7EF",
"continuousWidth": 120,
"continuousHeight": 120
},
"concat": {
"spacing": 10
},
"facet": {
"spacing": 50
},
"repeat": {}
}
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {
"url": "https://gist.githubusercontent.com/woodbridge/cf2121d17c1a0b6c1c6c0b192046ef42/raw/1a2c282273ba5a9ded126867060b20c31a68e311/fuck",
"format": {"type": "csv"}
},
"title": "U.S. Incidents of Coronovirus",
"facet": {
"type": "nominal",
"title": null,
"field": "State"
},
"columns": 6,
"spec": {
"encoding": {
"x": {"type": "temporal", "field": "Date", "title": "DATE"},
"y": {"type": "quantitative", "field": "Confirmed", "title": "CONFIRMED CASES"},
"size": { "value": 1 },
"color": { "value": "#DE3F2A" }
},
"layer": [{"mark": "line"}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment