1
0
Fork 0

Make the aggregate bar charts more saturated

main
Kevin Belisle 2021-09-03 11:44:26 -04:00
parent 8e27e95fd9
commit 34e5e207d9
1 changed files with 2 additions and 17 deletions

View File

@ -1,21 +1,6 @@
import React, { useMemo } from "react";
import useHover from "./useHover";
import {
AspectRatio,
Box,
Button,
Heading,
HStack,
Icon,
Input,
Stat,
StatLabel,
StatNumber,
StatHelpText,
StatArrow,
StatGroup,
Tooltip,
} from "@chakra-ui/react";
import { Box, Heading, HStack, Tooltip } from "@chakra-ui/react";
import prettifyStatisticName from "./PrettifyStatisticName";
const randomColor = () =>
@ -41,7 +26,7 @@ const StackedBarSegment = ({ aggregate, total }) => {
<Box
width={aggregate.value / total}
height="100%"
filter={isHovered ? "clear" : "saturate(0.15)"}
filter={isHovered ? "clear" : "saturate(0.5)"}
backgroundColor={color}
ref={hoverRef}
></Box>