Created
April 6, 2024 19:59
-
-
Save PBI-DataVizzle/9cfdae59e4cfb227228727d29a1b9a02 to your computer and use it in GitHub Desktop.
layered_facet_trellis
This file contains hidden or 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
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"name": "trellis_barley", | |
"description": "Trellis", | |
"title": { | |
"text": "Ingressi giornalieri in Terapia Intensiva (TI) a confronto con ricoveri totali in TI", | |
"color": "#168CC7", | |
"fontSize": 18, | |
"anchor": "start", | |
"font": "Montserrat", | |
"subtitle": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam convallis enim ac fringilla feugiat", | |
"subtitleFont": "Montserrat" | |
}, | |
"data": { | |
"url": "https://raw.githubusercontent.com/ondata/covid19italia/master/elaborazioni/dpc_covid19/terapiaIntensiva/processing/terapiaIntensivaRegSoglia.csv" | |
}, | |
"vconcat": [ | |
{ | |
"columns": 3, | |
"facet": { | |
"field": "denominazione_regione", | |
"type": "ordinal", | |
"title": "" | |
}, | |
"spec": { | |
"layer": [ | |
{ | |
"mark": "point", | |
"encoding": { | |
"x": { | |
"field": "ingressi_terapia_intensiva_mm", | |
"type": "quantitative", | |
"title": "Ingressi giornalieri in TI", | |
"scale": {"zero": false, "padding": 10} | |
}, | |
"y": { | |
"field": "terapia_intensiva_mm", | |
"type": "quantitative", | |
"title": "Totale ricoveri in TI", | |
"scale": {"zero": false, "padding": 10} | |
}, | |
"tooltip": [ | |
{"field": "mese", "type": "nominal", "title": "mese"} | |
], | |
"color": { | |
"field": "mese", | |
"type": "nominal", | |
"legend": {"title": "Mesi"}, | |
"scale": {"scheme": "tableau10"} | |
} | |
} | |
}, | |
{ | |
"mark": {"type": "rule", "color": "red"}, | |
"encoding": { | |
"y": {"field": "soglia30", "type": "quantitative", "title": null}, | |
"size": {"value": 1} | |
} | |
} | |
] | |
}, | |
"resolve": {"scale": {"x": "independent", "y": "independent"}} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment