Bar Chart React & D3
This example shows a horizontal bar chart of the first ten artworks from an Artworks.csv dataset, plotting the number of households per artwork. It uses React hooks like `useState` and `useEffect` to fetch and manage the data, while D3 utilities such as `csv`, `scaleBand`, `scaleLinear`, and `max` handle data loading and axis scaling. The chart renders as SVG, with tick marks, labels, and bars generated through React components. A loading state displays “Loading…” until the data arrives.