mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: tooltip order
This commit is contained in:
parent
b14efedd18
commit
1024c597cf
@ -172,6 +172,10 @@ const ChartTooltipContent = React.forwardRef<
|
||||
return null;
|
||||
}
|
||||
|
||||
payload.sort((a, b) => {
|
||||
return Number(b.value) - Number(a.value);
|
||||
});
|
||||
|
||||
const nestLabel = payload.length === 1 && indicator !== "dot";
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user