Zero dependencies
Pure vanilla JavaScript with no external visualization framework required.
Lightweight by designDatum is a lightweight, layer-based visualization library for building rich, interactive charts with vanilla JavaScript.
npm i @psdpainter/datum-jsBuild expressive visualizations with a small, composable API and no external runtime dependencies.
Pure vanilla JavaScript with no external visualization framework required.
Lightweight by designCombine lines, areas, bars, dots, rulers and other layers inside a single visualization.
Explore layers →Crosshairs and tooltips provide coordinated context across composed data layers.
View documentation →Work directly with primitive arrays or map object properties to visualization dimensions.
Data options →Import only what you need with a modern, straightforward JavaScript API.
Built for modern browsersCommon statistical helpers live alongside the visualization API.
Explore statistics →A Datum chart is a collection of independent layers. Add the visual primitives you need and let them share the same coordinate system.
Datum.chart({
target: '#chart',
datum: [
Datum.area(values, {
fill: Color.Blue,
opacity: 0.2
}),
Datum.line(values, {
stroke: Color.Blue,
smooth: true
}),
Datum.dot(values, {
stroke: Color.Blue,
fill: '#ffffff'
}),
Datum.ruler([], {
value: 25,
dashed: true
})
]
});Install Datum and create your first visualization in a few lines of JavaScript.