Published
Edited
Dec 1, 2021
2 forks
Insert cell
Insert cell
bar_chart = {
const bars = vl.markBar()
.data(cars)
.encode(
vl.x().fieldQ('Horsepower').aggregate('average'),
vl.y().fieldN('Year')
)
return bars.render()
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Cole o código copiado em um arquivo markdown no seu GitHub Pages.
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
cars = data['cars.json']()
Insert cell
data = require('vega-datasets')
Insert cell
import {vl} from '@vega/vega-lite-api-v5'
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