Skip to main content
100%

Viz - Bar - axis

✓ Published0🌍 Public
NNPashaP
Last edited Jan 7, 2018
Created on Jan 7, 2018

This example displays a basic bar chart with ten randomly generated values, rendering each bar in steelblue within an SVG. The bars are positioned along a bottom axis and a left axis, both generated using D3’s `d3.axisBottom` and `d3.axisLeft` scales. The chart is constructed by calling the `viz.bar()` API from the vizjs library, which handles the bar layout, while the axes are appended manually to the same SVG group. The data consists of key-value pairs produced by `d3.range` and `Math.random`, and the entire visualization is rendered with D3 v4.

AI-generated description
gpl-3.0 Licensed

Similar vizzes