Skip to content

Instantly share code, notes, and snippets.

@mlongoria
Created July 17, 2022 19:00
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 mlongoria/4a11a6d1f3c88c384b697fc9b26e8166 to your computer and use it in GitHub Desktop.
Save mlongoria/4a11a6d1f3c88c384b697fc9b26e8166 to your computer and use it in GitHub Desktop.
{
"data": {"name": "dataset"},
"mark": "area",
"encoding": {
"x": {
"timeUnit": "weekyear",
"field": "Date",
"title": null,
"axis": {"domain": false, "format": "%b %Y", "tickSize": 0}
},
"y": {
"aggregate": "sum", "field": "Total Area",
"stack": "center",
"axis": null
},
"order": {"field": "Drought Cat Order"},
"color": {"field":"Drought Category",
"sort": {"field": "Drought Cat Order", "order": "ascending"},
"scale":{"scheme": "pbiColorNominal"},
"legend": {"description": "Legend showing the scale from none through exceptional drought",
"direction": "horizontal", "orient": "top", "labelFontSize": 20,
"titleFontSize": 20,
"labelLimit": 1000
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment