D3 Example
✓ Published0🌍 Public
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 descriptionMIT Licensed