Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart Attempt 1 now With Marging

Public visualization

Viewing a saved revision (read-only)

f6752cd90ce64333b498ac6e6405bb5c

Bar Chart Attempt 1 now With Marging

0 stars1🌍 Public
Ddiegobrivo
Last edited Aug 13, 2022
Created on Aug 13, 2022

This example shows a vertical bar chart of monthly values from a CSV file, with a title and axes. The bars are rendered as SVG rectangles, with the x-axis using a band scale for dates and the y-axis using a linear scale. The code explicitly implements chart margins by translating a group element, and uses `d3.axisTop` and `d3.axisLeft` to draw the axes. Data is loaded via `d3.csv` and sorted chronologically before rendering.

AI-generated description

An example including some commonly used features of SVG.