🌍 Public
Viewing a saved revision (read-only)
dd909c9baa504e8ebb28a033b64b1969
activity 6 q3
This visualization shows the distribution of movie ratings across different car companies, with each company displayed as a horizontal stacked bar chart. The chart uses percentage values to represent the proportion of ratings in five categories, from below 5.0 to above 8.5. Built with D3 v7, it employs `d3.stack()` for the stacked bar construction, `d3.scaleOrdinal()` for color mapping, and `d3.scaleLinear()` for the x-axis. Interactive tooltips appear on mouseover, displaying the exact percentage for each rating segment. Data is loaded from a CSV file containing company names and their corresponding rating distributions.
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.