Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart From Memory

Public visualization

Viewing a saved revision (read-only)

95ad06a77126448ea3c6a38d7b25c8a0

Bar Chart From Memory

0 stars0🌍 Public
Vvasukipriyam
Last edited Apr 23, 2019
Created on Apr 23, 2019

This example reconstructs a bar chart from memory, displaying the relative lengths of different candy bars using circles positioned along categorical and linear scales. The code loads data from a CSV file, then uses D3 v5 APIs including `scaleLinear`, `scalePoint`, `axisLeft`, and `axisBottom` to render the SVG visualization. A title and custom styling via CSS complete the chart, which plots each bar’s length as a circle’s x-position on a numeric scale, with y-position determined by its name.

AI-generated description

attempting to reconstuct the d3 barchart from memory, as an excersize