Public
Edited
Aug 1, 2021
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
visualise = async container => {
const visualiser = await new AntVG2.Visualiser(container, options).build();
container.replaceChildren(visualiser.element);
return visualiser;
}
Insert cell
Insert cell
Insert cell
Insert cell
options = ({
data: [
{ genre: 'Sports', sold: 275 },
{ genre: 'Strategy', sold: 115 },
{ genre: 'Action', sold: 120 },
{ genre: 'Shooter', sold: 350 },
{ genre: 'Other', sold: 150 }
],
setup: chart => {
chart.interval().position('genre*sold');
}
})
Insert cell
Insert cell
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