d3 grouped bar
✓ Published0🌍 Public
CCaged
Last edited Mar 23, 2011
Created on Mar 22, 2011
This example shows a grouped bar chart comparing weekly values across two series, distinguished by fill color (blue for the previous series and gray for the current one). The data comes from a JSON endpoint (`/trends.json`) containing arrays for weeks and months. Using D3’s ordinal scales for positioning, it renders SVG rectangles for each bar, with a color-coded layer per series and month labels placed along the x-axis. The visualization is drawn inside an SVG container sized to the page element, using D3’s selection and data-join patterns to bind the nested values.
AI-generated description