labels with proper formatting
This commit is contained in:
@@ -254,18 +254,21 @@ export default function HistoryChart({
|
||||
{formatLabel(point.id, activeDataKey)}
|
||||
</Typography>
|
||||
|
||||
{comparison && point.compareLabel && activeDataKey !== "daily" && (
|
||||
<Typography
|
||||
variant="caption"
|
||||
sx={{
|
||||
fontSize: "0.7rem",
|
||||
opacity: 0.7,
|
||||
color: "grey.400",
|
||||
}}
|
||||
>
|
||||
{formatLabel(point.compareLabel, activeDataKey)}
|
||||
</Typography>
|
||||
)}
|
||||
<Typography
|
||||
variant="caption"
|
||||
sx={{
|
||||
fontSize: "0.65rem",
|
||||
color: "grey.400",
|
||||
visibility:
|
||||
comparison && point.compareLabel && activeDataKey !== "daily"
|
||||
? "visible"
|
||||
: "hidden"
|
||||
}}
|
||||
>
|
||||
{point.compareLabel
|
||||
? formatLabel(point.compareLabel, activeDataKey)
|
||||
: "placeholder"}
|
||||
</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user