Published
Edited
Feb 19, 2018
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// http://picassojs.com/docs/component-box.html
barcomponent = [{
type: 'box',
data: {
extract: {
field: 'Month',
props: {
start: 0,
end: {
field: 'Sales'
}
}
}
},
settings: {
major: {
scale: 'month'
},
minor: {
scale: 'sales'
}
}
}]
Insert cell
Insert cell
Insert cell
picasso.chart({
element: barChartContainer, // Referencing our container cell
data: exampledata,
settings: {
scales: scales,
components: [].concat(barcomponent, axiscomponents) // Concat the bar and axis' into a single array
}
})
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