mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-04 00:25:24 +00:00
add selector in legend
This commit is contained in:
parent
9318d32b0b
commit
9519dd3930
1
src/types/dashboard.d.ts
vendored
1
src/types/dashboard.d.ts
vendored
@ -112,7 +112,6 @@ export interface LineConfig extends AreaConfig {
|
|||||||
smallTips?: boolean;
|
smallTips?: boolean;
|
||||||
showlabels?: boolean;
|
showlabels?: boolean;
|
||||||
noTooltips?: boolean;
|
noTooltips?: boolean;
|
||||||
showLegend?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AreaConfig {
|
export interface AreaConfig {
|
||||||
|
@ -61,7 +61,6 @@ limitations under the License. -->
|
|||||||
smallTips: false,
|
smallTips: false,
|
||||||
showlabels: true,
|
showlabels: true,
|
||||||
noTooltips: false,
|
noTooltips: false,
|
||||||
showLegend: true,
|
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -130,7 +129,7 @@ limitations under the License. -->
|
|||||||
tooltip: props.config.smallTips ? tips : tooltip,
|
tooltip: props.config.smallTips ? tips : tooltip,
|
||||||
legend: {
|
legend: {
|
||||||
type: "scroll",
|
type: "scroll",
|
||||||
show: props.config.showLegend ? showEchartsLegend(keys) : false,
|
show: showEchartsLegend(keys),
|
||||||
icon: "circle",
|
icon: "circle",
|
||||||
top: 0,
|
top: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
@ -138,6 +137,16 @@ limitations under the License. -->
|
|||||||
textStyle: {
|
textStyle: {
|
||||||
color: appStore.theme === Themes.Dark ? "#fff" : "#333",
|
color: appStore.theme === Themes.Dark ? "#fff" : "#333",
|
||||||
},
|
},
|
||||||
|
selector: [
|
||||||
|
{
|
||||||
|
type: "all",
|
||||||
|
title: "All",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "inverse",
|
||||||
|
title: "Inverse",
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
top: showEchartsLegend(keys) ? 35 : 10,
|
top: showEchartsLegend(keys) ? 35 : 10,
|
||||||
|
Loading…
Reference in New Issue
Block a user