tremorlabs / tremor

React components to build charts and dashboards
https://tremor.so
Apache License 2.0
15.39k stars 446 forks source link

feat: add donut chart legend #982

Open abdelkd opened 2 months ago

abdelkd commented 2 months ago

Description This PR adds a feature from #876 for an optional legend to donut chart that's hidden by default, providing null to activeSector prop would show the legend with no default value and providing an index string from data would make the element active on page load

I added a new activeSector prop that receives undefined or null or string and it will make sector active upon page loading up and

Related issue(s)

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)

If yes, please describe the impact and migration path for existing applications:

How has this been tested?

Screenshots (if appropriate):

The PR fulfils these requirements:

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tremor-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2024 10:52pm