-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* made the pie chart more interactive by adding custom renderings for active pie slices which highlight the legend and display additional information * added a bottom border unerlind to each legend item when it gains focus via keyboard for accessibility * disable the pie chart animation after it completes its first animation so that the pie cell labels appear instantly after hovering and then leaving a single section * refactored the (x,y) coordinate calculations for the custom chart render functions * improved the anchor positioning for the pie label text by considering the length of the value string and original position of the label * track animationIsActive state with both with recharts's onAnimationEnd and onAnimationStart props to determine if the labels need to be rendered --------- Co-authored-by: David Graham <[email protected]>
- Loading branch information
1 parent
f677506
commit 97e073e
Showing
2 changed files
with
283 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
292 changes: 274 additions & 18 deletions
292
client/src/components/Charts/ManifestStatusPieChart/ManifestStatusPieChart.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters