Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

csv using d3

Public visualization

Viewing a saved revision (read-only)

4674dadb822d4efa894bb07cbac71fe3

csv using d3

0 stars2🌍 Public
RRITUZZ
Last edited Jan 26, 2021
Created on Jan 25, 2021
Forked from d3 intro

This example displays a bar chart of categorical data from a CSV file, mapping names to numbers. It loads D3 v6 via UNPKG and an external CSV, parsing the data with `d3.csv` and `+` conversion. The chart uses `d3.scaleBand` for the y-axis and `d3.scaleLinear` with `d3.max` for the x-axis, rendered entirely as SVG elements. `d3.axisLeft` and `d3.axisBottom` generate the axes, while D3 selection API appends the rectangles.

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.