Viz - Bar - align
✓ Published0🌍 Public
NNPashaP
Last edited Jan 7, 2018
Created on Jan 7, 2018
This example demonstrates a bar chart where individual bars are aligned within their scale bands using the `align(0.1)` method from the `viz.bar` API. Ten random data points, generated by `d3.range(10)` with `Math.random()`, are rendered as `steelblue` SVG rectangles with crisp edges. The chart uses a bottom axis created with `d3.axisBottom()` driven by the same key scale. The code relies on the NPashaP gist’s `viz.js` library in combination with D3 v4 to handle layout and scales.
AI-generated descriptiongpl-3.0 Licensed