🌍 Public
Viewing a saved revision (read-only)
3e5b40e8d7c54b619f1c59619d7c404d
Car price
This example displays the distribution of movie ratings (below 5.0, 5.0-6.5, etc.) as a horizontal stacked bar chart across different genres. Each bar segment represents the percentage of ratings for that genre, with interactive tooltips revealing exact values on hover. The visualization is built using D3.js v7, leveraging `d3.stack`, `d3.scaleOrdinal`, and `d3.axisBottom` to process and render the data from a local CSV file. Color-coded legends identify each rating category, and the chart is rendered as SVG within a fixed canvas.
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.