mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
feat: enhance the legend of metrics graph widget with the summary table (#181)
This commit is contained in:
12
src/types/dashboard.d.ts
vendored
12
src/types/dashboard.d.ts
vendored
@@ -95,6 +95,7 @@ export type GraphConfig =
|
||||
export interface BarConfig {
|
||||
type?: string;
|
||||
showBackground?: boolean;
|
||||
legend?: LegendOptions;
|
||||
}
|
||||
export interface LineConfig extends AreaConfig {
|
||||
type?: string;
|
||||
@@ -110,6 +111,7 @@ export interface LineConfig extends AreaConfig {
|
||||
export interface AreaConfig {
|
||||
type?: string;
|
||||
opacity?: number;
|
||||
legend?: LegendOptions;
|
||||
}
|
||||
|
||||
export interface CardConfig {
|
||||
@@ -180,3 +182,13 @@ export type EventParams = {
|
||||
value: number | number[];
|
||||
color: string;
|
||||
};
|
||||
export type LegendOptions = {
|
||||
show: boolean;
|
||||
total: boolean;
|
||||
min: boolean;
|
||||
max: boolean;
|
||||
mean: boolean;
|
||||
asTable: boolean;
|
||||
toTheRight: boolean;
|
||||
width: number;
|
||||
};
|
||||
|
Reference in New Issue
Block a user