Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Example

Public visualization

Viewing a saved revision (read-only)

2a1a0a5b160d43d2816543a49f0a5b13

D3 Example

0 stars0🌍 Public
Pprincit
Last edited Apr 28, 2020
Created on Apr 28, 2020
Forked from D3 Example

A stacked horizontal bar chart displays sales totals per product sub-category, with bars segmented by customer segment and colored using `d3.scale.category10`. Hovering over a legend entry highlights that segment by fading other bars behind a semi-transparent overlay and re-drawing the selected segment in the foreground, while `d3-tip` shows tooltips. The chart uses D3 v3 with SVG, including `d3.layout.stack` for stacking and `d3.legend.color` for an interactive color legend, and reads data such as the provided `lebron.csv` file.

AI-generated description