act8
✓ Published0🌍 Public
This example displays a stacked bar chart of movie ratings by genre, sourced from a local CSV file. The visualization uses React and D3 v7 to render SVG bars, with scales for linear percentages and categorical genres. It employs `d3.stack`, `scaleBand`, and `scaleLinear` to compose the bars, while a color scale distinguishes categories. Interactive tooltips, built with D3 selectors, reveal percentage values on hover.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed