mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
feat: add custom config for graphs
This commit is contained in:
@@ -47,7 +47,7 @@ export interface StandardConfig {
|
||||
seconds?: string;
|
||||
}
|
||||
|
||||
export type GraphConfig = BarConfig | LineConfig;
|
||||
export type GraphConfig = BarConfig | LineConfig | CardConfig | TableConfig;
|
||||
export interface BarConfig {
|
||||
type?: string;
|
||||
showBackground?: boolean;
|
||||
@@ -63,3 +63,21 @@ export interface AreaConfig {
|
||||
type?: string;
|
||||
opacity?: number;
|
||||
}
|
||||
|
||||
export interface CardConfig {
|
||||
type?: string;
|
||||
fontSize?: number;
|
||||
showUint: boolean;
|
||||
}
|
||||
|
||||
export interface TableConfig {
|
||||
type?: string;
|
||||
showTableValues: boolean;
|
||||
tableHeaderCol1: string;
|
||||
tableHeaderCol2: string;
|
||||
}
|
||||
|
||||
export interface TopListConfig {
|
||||
type?: string;
|
||||
topN: number;
|
||||
}
|
||||
|
Reference in New Issue
Block a user