Skip to main content
100%

task 9&10

✓ Published0🌍 Public
Ppranayrajana.97@gmail.com
Last edited Apr 28, 2024
Created on Apr 28, 2024
Forked from Hello VizHub

This visualization shows the percentage of Democratic voters across different states using a D3.js area chart. The SVG-based chart displays each state on the x-axis with the corresponding percentage on the y-axis, rendered as a filled steelblue area. The code loads CSV data from a GitHub gist, processes the percent_democrat values, and uses d3.area, d3.scaleBand, and d3.scaleLinear to construct the visualization with rotated x-axis labels for readability.

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