Published
Edited
Mar 24, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {chart as barchart} with {barchart_data as data, wide_margin as margin} from "@d3/horizontal-bar-chart"
Insert cell
import {chart as barchartrace} with {replay as replay, barchartrace_data as data, alto as height, barras as n, duration as duration} from "@d3/bar-chart-race"
Insert cell
Insert cell
// barchartrace_data =
datos_barrace = d3.csv("https://download.data.world/s/reuhz247p3htncfyjszo7q45xy5dls")
Insert cell
barchartrace_data = datos_barrace.map(d => ({date: new Date(d.year, 1, 1), name: d.item, category: Math.floor(Math.random() * 10), value: +d.value}))
Insert cell
Math.random()*10
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more