Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
HHelen-Luwei-Zhang
Last edited Dec 12, 2021
Created on Dec 12, 2021
Forked from Hello VizHub

This example demonstrates a simple bar chart visualization created with D3.js, displaying data from a CSV file loaded from a GitHub repository. The code uses `d3.select` to append a paragraph to the page and `d3.csv` to fetch the dataset, then renders axes with `d3.axisBottom` and `d3.axisLeft`. The chart includes dollar-formatted tick labels on the y-axis and uses a height-based translation for proper positioning. The implementation relies on D3 v5, imported via ES6 modules, with the page structure defined in an HTML file and styling in a linked CSS stylesheet.

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