feat: Implement the legend selector in metrics charts (#447)

This commit is contained in:
Fine0830
2025-02-20 16:19:22 +08:00
committed by GitHub
parent 2b6f3ecaa8
commit 5bb4218bfe
16 changed files with 299 additions and 25 deletions

View File

@@ -35,7 +35,7 @@ export default function useLegendProcess(legend?: LegendOptions) {
if (keys.length === 1) {
return false;
}
if (legend && legend.asTable) {
if (legend && (legend.asTable || legend.asSelector)) {
return false;
}
return true;