Activity6_Questn2
This stacked bar chart displays the distribution of public ratings across ten political topics, with each topic’s bar normalized to 100%. The visualization uses D3.js v7’s `d3.stack`, `d3.scaleBand`, and `d3.scaleLinear` APIs, rendering as SVG. Data is loaded from a CSV file, and each segment’s percentage is revealed via a tooltip on hover. The legend and color-coded segments clarify the five rating categories, from “very low” to “very high.” The chart employs ordinal color scales and axis labels to present the categorical proportions clearly.
AI-generated description#Political popularity can be affected by a topic.
In the present case, the bar graph illustrates the proportionate Classification judgments on political matters. Each bar marks a political subject and each is broken up by ratings (ranging from very low to very high). Each bar height is 1, i.e., 100% displaying a graph of the distribution of a given subject's ratings.
It assists in visualizing the way different political issues are rated or viewed at various levels of scores.