Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE-6 Bar Graph

Public visualization

ICE-6 Bar Graph

0 stars0🌍 Public
BBhanuMotupalli
Last edited Mar 23, 2023
Created on Mar 23, 2023

This example shows the prices of twelve Burger King menu items in a horizontal bar chart. Each bar’s length encodes the item’s price using a linear scale, with a red gridline for each tick on the x-axis. The chart is built with React and D3 v5, using `scaleBand` for the y-axis item categories and `scaleLinear` for price values, while `csv` loads the data from a GitHub gist. Bars are rendered as SVG rectangles, with axis ticks generated manually via `xScale.ticks()`.

AI-generated description

A whole smiley face

Comments

Sign in to join the discussion.

MIT Licensed