Skip to main content
100%

Grouped bar chart v4 - TP3

✓ Published0🌍 Public
AAlxClt
Last edited Jan 31, 2018
Created on Jan 31, 2018

This example shows a grouped bar chart with ten sample categories across five series, drawn as colored vertical bars in an SVG. The data is randomly generated with `Math.random`, and the chart uses D3 v4’s `d3.scaleBand` for both the outer category scale and the inner series scale, while `d3.scaleOrdinal` assigns a categorical color palette. Bars are positioned by translating each group and placing rectangles with explicit `x` and `y` attributes, with axes formatted via the standard D3 axis components.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/2f94c1913b81f7fd20c530236934433a'>Grouped bar chart v4</a>

mit Licensed

Similar vizzes