🌍 Public
Viewing a saved revision (read-only)
f86e995fe27947c7b73c42a2dd6d53ac
Bar Chart Example
This example demonstrates a basic bar chart built with D3 version 6. It visualizes a small dataset of four categorical values using an SVG container. The code creates an SVG, applies d3.scaleBand for the x-axis and d3.scaleLinear for the y-axis, then renders steelblue rectangles for each data point. It also appends axes with d3.axisBottom and d3.axisLeft.
AI-generated descriptionA demonstration of how to start using D3 version 6.