Barbell Chart
A barbell chart compares two related values at each x-axis position, with paired circles connected by a line. Each circle encodes four attributes: horizontal and vertical position, size, and color. The D3 v4 example uses `d3.interval` to regenerate random data every two seconds, and `d3.transition` to animate the circles and connecting lines as they update. It also uses `d3.select` for DOM selection, `d3.scaleLinear` for axes and sizing, and `d3.axisBottom`/`d3.axisLeft` for chart axes.
AI-generated descriptionA scatter chart comparing two variables at each point along the x-axis. A connector line between the circles indicates that the two variables are related (e.g. male and female). As with other bubble charts, each circle can encode four data attributes: (1) horizontal position, (2) vertical position, (3) size, and (4) color.
forked from <a href='http://bl.ocks.org/HarryStevens/'>HarryStevens</a>'s block: <a href='http://bl.ocks.org/HarryStevens/a32d0737827d874e98a93c19d8cefe9f'>Barbell Chart</a>