Skip to main content
100%

Metis: Data Transformation + Nest (sxywu)

✓ Published0🌍 Public
VVirginiaHNg
Last edited Jul 12, 2017
Created on Jul 12, 2017

This example shows a bar chart of venture investors, where each bar represents one investor and its height encodes the number of unicorn companies in their portfolio. The underlying data is first transformed with `d3.nest()` to group individual investment records by investor, then bound to SVG `<g>` elements using a data join. The chart uses `d3.select`, `enter`, `merge`, and `exit` to manage rectangles and text labels, with scales omitted and positions calculated manually via translation transforms. The bars are drawn as semi-transparent steelblue rectangles, and each label displays the count of investments.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes