Fork of Simple Bar Chart
✓ Published0🌍 Public
This example visualizes the production budgets of Indian films as a horizontal bar chart, using React and D3 v5. The chart reads movie titles and budget figures from a remote CSV file, mapping each movie to a bar scaled by its budget. It constructs the visualization with D3’s `scaleBand` and `scaleLinear` for positioning and sizing, and renders axes, labels, and rectangles with SVG. The code also applies CSS gradients for bar and text fills, and includes a hardcoded header unrelated to the data.
AI-generated descriptionMIT Licensed