Skip to content

Page3

vegalite

https://www.ncei.noaa.gov/cdo-web/search

Jordan

{ "$schema": "https://vega.github.io/schema/vega-lite/v5.json", "title": "JORDAN, 2000-2021", "data": { "url": "includes/jordan.csv" }, "vconcat": [ { "encoding": { "color": { "condition": { "param": "brush", "title": "Patterns", "field": "STATION", "type": "nominal", "scale": { "domain": ["JOM00040265","JOM00040296","JOM00040310","JOM00040250","JOM00040260"], "range": ["green","blue","orange","red","magenta"] } }, "value": "lightgray" }, "size": { "title": "Precipitation", "field": "PRCP", "scale": {"domain": [-1, 5]}, "type": "quantitative" }, "x": { "field": "DATE", "timeUnit": "monthdate", "title": null, "axis": {"format": "%b"} }, "y": { "title": "Maximum Daily Temperature (°C)", "field": "TAVG", "scale": {"domain": [20,110]}, "type": "quantitative" } }, "width": 1000, "height": 600, "mark": "point", "params": [{ "name": "brush", "select": {"type": "interval", "encodings": ["x"]} }], "transform": [{"filter": {"param": "click"}}] }, { "encoding": { "color": { "condition": { "param": "click", "field": "STATION", "scale": { "domain": ["JOM00040265","JOM00040296","JOM00040310","JOM00040250","JOM00040260"], "range": ["green","blue","orange","red","magenta"]} }, "value": "lightgray" }, "x": {"aggregate": "count"}, "y": {"title": null, "field": "STATION"} }, "width": 1000, "mark": "bar", "params": [{ "name": "click", "select": {"type": "point", "encodings": ["color"]} }], "transform": [{"filter": {"param": "brush"}}] } ] }