Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

sriram viz

Public visualization

sriram viz

0 stars0🌍 Public
SSriram-Voruganti
Last edited Mar 7, 2023
Created on Mar 6, 2023

A horizontal bar chart displays average car prices for four car makes in the United States, using data loaded from a CSV file hosted on GitHub. The visualization is rendered as an SVG within a React application, utilizing D3 v5 functions for scaling, axes, and shape generation. Specifically, the code employs `scaleBand`, `scaleLinear`, `axisLeft`, and `axisBottom` implicitly through manual tick rendering, while directly invoking `csv`, `max`, and `format` from the D3 library. The chart maps car makes to vertical bands and prices to horizontal bar widths, with axes drawn as SVG elements.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed