Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars0🌍 Public
Ssrrajendran
Last edited Nov 7, 2018
Created on Sep 5, 2018
Forked from Cars report

This horizontal bar chart visualizes the fuel efficiency of various car models, ranking them by their miles per gallon (MPG) value. The data is sourced from a CSV file and loaded using D3's `csv` function, with MPG values scaled down for display. The visualization is built with D3 v5, using `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis. Bars are rendered as SVG rectangles, with axes added via `axisLeft` and `axisBottom`, and the chart is styled with a steelblue fill for the bars.

AI-generated description

This bar chart shows cars with their MPG. the source comes from https://perso.telecom-paristech.fr/eagan/class/igr204/datasets

Comments

Sign in to join the discussion.

MIT Licensed