Published
Edited
Sep 22, 2019
Fork of Olar, Mundo!
Insert cell
Insert cell
embed = require("vega-embed@3")
Insert cell
viewof view = embed({
$schema: 'https://vega.github.io/schema/vega-lite/v3.json',
width: 360,
data: {
url: "https://apiteste.insa.gov.br/reservatorios/12172/monitoramento",
format: {"type": "json","property": "volumes"},
parse: {"DataInformacao": "utc:'%d/%m/%Y'"}
},
selection: {
a: {type: 'single'}
},
mark: "line",
encoding: {
x: {
timeUnit: "year",
field: "DataInformacao",
type: "temporal",
axis: {title: "Anos"}
},
y: {
aggregate: "mean",
field: "Volume",
type: "quantitative",
axis: {title: "Volume médio"}
},
color: {field: "Fonte", type: "nominal"}
}
})
Insert cell
md`# Conclusões

A partir do gráfico é possível perceber que o volume médio do açude nunca teve um valor constante no decorrer dos anos, tendo caído bastante entre 2011 e 2017.`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more