Fork of HTML Starter
✓ Published0🌍 Public
This example demonstrates a dynamic stacked bar chart built with React and the Recharts library. It fetches raw data from an API and allows users to toggle between price and quantity metrics, as well as filter to display either all funding groups or only the top ten by total value. The chart groups data by funding and aggregates values by line of business, generating bars dynamically for each category with random colors. The visualization uses Recharts' `BarChart`, `Bar`, `XAxis`, `YAxis`, `Tooltip`, and `Legend` components, with a custom tick formatter that converts large numbers into millions for improved readability.
AI-generated descriptionMIT Licensed