Skip to main content
100%

ICE-6_Bar_Graph

✓ Published0🌍 Public
Jjayavamsi
Last edited Mar 23, 2023
Created on Mar 23, 2023
Forked from HTML Starter

This example visualizes the duration of each song in a Spotify dataset using a horizontal bar graph. The chart displays the first ten songs from a CSV file, with the song names on the y-axis and their corresponding durations on the x-axis, making it easy to compare track lengths at a glance. The visualization is built with React and D3 v5, using D3 functions like `csv` to load the data, `scaleBand` for the categorical y-axis, `scaleLinear` for the numerical x-axis, and `axisBottom` for tick generation. The bars are rendered as SVG `<rect>` elements, with axis lines and labels styled in red and black, all within a fixed 960x500 canvas.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes