mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2026-07-06 06:48:12 +00:00
add legend component
This commit is contained in:
@@ -18,6 +18,9 @@ import { LegendOptions } from "@/types/dashboard";
|
||||
|
||||
export default function useLegendProcess() {
|
||||
function showEchartsLegend(keys: string[], legend?: LegendOptions) {
|
||||
if (legend && !legend.show === undefined) {
|
||||
return legend.show;
|
||||
}
|
||||
if (keys.length === 1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user