Bar Chart
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed