Skip to main content
100%

Bar Chart

✓ Published0🌍 Public
HHarshithaAmbilpur
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from Hello VizHub

This bar chart displays the marks of ten named students, with each bar representing a person’s score from the hard-coded dataset. Rendered as SVG via D3 v7, it uses `d3.scaleBand` and `d3.scaleLinear` to map names and score values, then draws the bars as `rect` elements. The chart includes rotated x-axis labels and interactive hover effects that change bar color, demonstrating basic D3 data joins and axis generation.

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