Public
Edited
Dec 2
3 forks
Importers
1 star
Insert cell
Insert cell
Insert cell
test = {
let otherChart = BarChart()
.x("country")
.y("cups");
let otherContainer = d3.create("div")
.attr("id", "other-cotainer")
.datum(worldCup)
.call(otherChart);

return otherContainer.node();
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
update = function(){
d3.selectAll("#container")
.datum(cs.groups.get(currentVar).all())
.call(myChart);
}()
Insert cell
Insert cell
myChart = BarChart()
.width(800)
.height(400)
.config({
xTicksMaxLen: 25,
xTicksAngle: angle,
marginBottom: currentVar == "tipo" ? 20 : 72,
marginLeft: 48,
showValues: true,
valuesPosition: "in"
});
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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