Skip to main content
100%

Easy bar chart

✓ Published2🌍 Public
Hhanulik.ondrej@gmail.com
Last edited Aug 9, 2022
Created on Aug 8, 2022
Forked from Bar chart TT

A bar chart displays XYZ Foods stock prices across five years, from 2009 to 2021, with annual values ranging from 5,000 to 60,000. The visualization uses SVG rendering with D3 v4, employing `d3.scaleBand` for the x-axis years and `d3.scaleLinear` for the y-axis price range. Rectangles are bound to the data array, with axis labels and a title added via D3’s axis and text APIs. The chart is positioned within an 800×700 SVG canvas, using a margin offset for the plot area.

AI-generated description
MIT Licensed

Similar vizzes