Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task8_Question2

Public visualization

Viewing a saved revision (read-only)

e71847426bf14b5999cd158cf7f56058

Task8_Question2

0 stars0🌍 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.