Skip to main content
100%

creating barchart

✓ Published0🌍 Public
Vvidhyanamini
Last edited Mar 5, 2022
Created on Mar 4, 2022
Forked from dataset

This example shows a horizontal bar chart of cricket players’ career runs, with bars scaled linearly by run count and player names on a band scale. The code imports D3 v5 functions like `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, then renders SVG rectangles from `data.csv`. It multiplies run values by ten, removes axis domain lines, and adds custom axis labels and a title.

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