Published
Edited
Jul 29, 2021
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
visualise = async container => {
const visualiser = await new ECharts.Visualiser(container, options).build();
container.replaceChildren(visualiser.element);
return visualiser;
}
Insert cell
Insert cell
Insert cell
Insert cell
options = ({
title: { text: 'ECharts Example' },
tooltip: {},
legend: { data: ['Sales'] },
xAxis: {
data: ["shirt", "cardign", "chiffon shirt", "pants", "heels", "socks"]
},
yAxis: {},
series: [{ name: 'Sales', type: 'bar', data: [5, 20, 36, 10, 10, 20] }]
})
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