Grouped Bar Chart
✓ Published0🌍 Public
Mmbostock
Last edited Feb 8, 2016
Created on Mar 22, 2011
This example presents a grouped bar chart with 20 samples across 4 series, rendered in SVG using D3 v3. The chart’s bars are positioned by two ordinal scales, `x0` for categories and `x1` for series, with a linear `y` scale mapping values from 0 to 1. Each series is assigned a distinct color via `d3.scale.category10`. Data is randomly generated, and axes are drawn using `d3.svg.axis`. The code emphasizes scale composition and grouped layouts rather than interactivity.
AI-generated descriptionSee this more recent, improved version.
gpl-3.0 Licensed