React & D3 - Simple Bar Chart
This example shows a horizontal bar chart of country populations for a selected year, with bars colored on a red-to-green scale based on their population values. The chart reads UN population data from a CSV file and displays a subset of countries. React manages the application state through hooks, including the currently selected year via an input field, while D3's `scaleLinear`, `scaleBand`, and `d3.interpolateHcl` handle scaling, layout, and color interpolation. The bars are rendered as SVG rectangles, with their widths and positions computed from the D3 scales.