Created
February 22, 2023 14:34
-
-
Save aborruso/bab348fb2e01fd38b9bb9f069dfd040e 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
{"config": {"view": {"continuousWidth": 300, "continuousHeight": 300, "strokeWidth": 0}}, "layer": [{"mark": {"type": "rect", "height": 10, "width": 10}, "encoding": {"color": {"field": "label", "legend": null, "scale": {"range": {"field": "color"}}, "title": "", "type": "nominal"}, "x": {"axis": {"domain": false, "grid": false, "labels": false, "ticks": false}, "field": "x", "title": "", "type": "ordinal"}, "y": {"axis": {"domain": false, "grid": false, "labels": false, "ticks": false}, "field": "y", "title": "", "type": "ordinal"}}}, {"mark": {"type": "text", "align": "left", "baseline": "middle", "dx": 8}, "encoding": {"text": {"field": "label", "type": "nominal"}, "x": {"axis": {"domain": false, "grid": false, "labels": false, "ticks": false}, "field": "x", "title": "", "type": "ordinal"}, "y": {"axis": {"domain": false, "grid": false, "labels": false, "ticks": false}, "field": "y", "title": "", "type": "ordinal"}}}], "data": {"name": "data-8f625ae77e7032416093a478bdb77cfd"}, "transform": [{"filter": "(datum.value !== 254)"}], "$schema": "https://vega.github.io/schema/vega-lite/v5.2.0.json", "datasets": {"data-8f625ae77e7032416093a478bdb77cfd": [{"x": 1, "y": 1, "color": "#fdbf6f", "alpha": 255, "label": "Non-Forest", "value": 0}, {"x": 1, "y": 2, "color": "#33a02c", "alpha": 255, "label": "Forest", "value": 1}, {"x": 1, "y": 3, "color": "#ffffff", "alpha": 0, "label": "254", "value": 254}]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment