Activity6_q2
This stacked bar chart visualizes the distribution of ratings across different movie genres, with each bar segment representing a rating category’s proportion of the total. The chart aims to show how ratings are composed within each genre, with hovering over a segment revealing the exact percentage via a tooltip. Built with D3 v7, the code uses `d3.stack()`, `d3.scaleLinear`, and `d3.scaleBand` to render the SVG, while `d3.axisBottom` and `d3.axisLeft` provide the axes. The data is loaded from a CSV file, and percent values are formatted with `d3.format`.
AI-generated descriptionThe Details of auto motor cars
This stacked bar chart gives the details of level within different cars. The aim is to show the impact of different car details and theior performance. When the mouse hovers over each bar, you can see pop-ups of details of each within each brand. Total percentage is 1, representing 100%.