Add animation to Grouped Bar Graph

This commit is contained in:
e26chiu 2022-12-31 18:39:34 -05:00
parent 40ea8648cc
commit beb5fb809e
2 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,10 @@
fill: var(--label);
}
.bar {
transition: fill 0.5s ease-out;
}
.legend {
display: flex;
margin: calc(16rem / 16);

View File

@ -603,6 +603,7 @@ function HoverableBar(props: HoverableBarProps) {
}}
>
<Bar
className={styles.bar}
onMouseMove={onMouseMove}
onMouseOut={onMouseOut}
x={bar.x}