🌍 Public
Viewing a saved revision (read-only)
ef235dd682824716ab635f9c79922d96
Task8_Question2
This example visualizes survey responses on trust levels for four topics, showing the distribution of very high, high, no answer, low, and very low trust as stacked horizontal bars. The chart uses D3 v7 with SVG rendering, applying `d3.stack()` to compute the stacked series and `d3.scaleOrdinal` for color mapping. Interactivity includes mouseover effects with tooltips displaying the exact percentage for each segment. Data is loaded locally from a CSV file, and axes are rendered with `d3.axisBottom` and `d3.axisLeft`.
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.