Skip to main content
100%

Task8_Question2

✓ Published0🌍 Public
KKeerthi
Last edited Apr 11, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes