Created
July 17, 2022 19:00
-
-
Save mlongoria/4a11a6d1f3c88c384b697fc9b26e8166 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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