Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

f50e013cc71b4c98904b17221a18e109

Making a Bar Chart

0 stars1🌍 Public
BBaraneedharan N M
Last edited Aug 15, 2020
Created on Aug 12, 2020
Forked from Making a Bar Chart

This example shows a horizontal bar chart of student marks, with each bar representing a student’s score. The chart uses a linear scale for the x-axis and a band scale for the y-axis, with axes generated via d3.axisLeft and d3.axisBottom. The data is loaded from a CSV file using d3.csv, and the bars are rendered as SVG rectangles. d3.scaleLinear, d3.scaleBand, and d3.max are used for scaling and domain calculation.

AI-generated description