Fork of Vertical Bar Chart
This vertical bar chart displays population data for ten countries, using D3 v6 (d3.scaleBand, d3.scaleLinear, d3.axisLeft, d3.axisBottom) and SVG rendering. The bars, initially steelblue, turn red with a blue stroke and show a text label with the population count (formatted using d3.format) on mouseover, which disappears on mouseout. The chart’s dimensions adapt to the window size, and a custom format-india function is available for Indian number formatting, though not used in the main rendering.