Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of A4_Bar-chart

Public visualization

Viewing a saved revision (read-only)

f16583bdd29a4a658b8b5ad3e548c489

Fork of A4_Bar-chart

0 stars0🌍 Public
Ppavan vasamsetti
Last edited Mar 21, 2024
Created on Mar 21, 2024
Forked from A4_Bar-chart

This bar chart visualizes life expectancy against population, using the D3.js library (v6) to render SVG bars and axes. The data is loaded from a CSV file via `d3.text`, then parsed and bound to rectangles. Hovering a bar triggers `mouseover` and `mouseout` handlers, changing the bar’s fill to orange and displaying a tooltip with the exact values. The chart includes rotated x-axis labels, axis labels, and a title, with scales set via `d3.scaleBand` and `d3.scaleLinear`.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.