Skip to main content
100%

RamyaPutta

✓ Published0🌍 Public
RRamyapriyaPutta
Last edited Mar 6, 2022
Created on Mar 6, 2022
Forked from dataset

This example visualizes sales data for 10 U.S. states using a horizontal bar chart rendered as SVG. It loads a CSV file from a GitHub gist, uses `d3.csv` for data parsing and `scaleBand`/`scaleLinear` for positioning. React manages the component state and lifecycle, while D3’s `max` and `format` handle numeric scaling. The chart includes gridlines and axis labels built with custom SVG elements, with bars colored blue by default. The data updates asynchronously, showing a loading message until the CSV is fetched and processed.

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