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