viewof view = embed({
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"url": "https://api.insa.gov.br/reservatorios/12172/monitoramento",
"format": {
"type": "json",
"property": "volumes",
"parse": {
"DataInformacao": "utc:'%d/%m/%Y'"
}
}
},
"width": 500,
"height": 100,
"transform": [
{
"filter": {
"timeUnit": "year",
"field": "DataInformacao",
"range": [
2013,
2018
]
}
}
],
"mark": "tick",
"encoding": {
"x": {
"field": "VolumePercentual",
"type": "quantitative"
}
}
})