Skip to main content
100%

Just things

✓ Published0🌍 Public
AAlexDaGr8
Last edited Aug 9, 2018
Created on Feb 16, 2018

This example combines a line chart and a bar chart in a single SVG, using a shared random dataset of 50 items. The line chart plots each item’s index against a numeric value, with circles sized and colored by a third `radius` attribute. The bar chart aggregates counts of items per radius value, revealing the distribution. Both charts use D3 v5 scales and axes; the line chart employs a d3.line path, while the bar chart uses d3.nest to group data. Hovering over a line-chart circle highlights the corresponding bar via d3.selectAll.

AI-generated description
mit Licensed

Similar vizzes