Skip to main content
100%

ICE-6 Bar Graph

✓ Published0🌍 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

MIT Licensed

Similar vizzes