Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
CCrystal Lee
Last edited Jul 19, 2022
Created on Jul 19, 2022
Forked from Hello VizHub

This example demonstrates a foundational D3.js bar chart using a hardcoded array of five values. It builds vertical bars by binding the dataset to `div` elements and setting each bar’s height dynamically with a custom scale factor. The code imports the `select` function from D3 via ES6 modules and uses `d3.select`, `.data`, `.enter`, and `.style` to create the visualization. A separate local module exports a text message, while the HTML file includes D3 v5 from UNPKG.

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