mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
fix: update graph
This commit is contained in:
@@ -51,10 +51,22 @@ export const dashboardStore = defineStore({
|
||||
w: 24,
|
||||
h: 12,
|
||||
i: String(this.layout.length),
|
||||
metrics: ["service_resp_time"],
|
||||
queryMetricType: "readMetricsValues",
|
||||
type: "Widget",
|
||||
widget: {},
|
||||
graph: {},
|
||||
standard: {},
|
||||
widget: {
|
||||
title: "Title123",
|
||||
tips: "Tooltip123",
|
||||
},
|
||||
graph: {
|
||||
showBackground: true,
|
||||
barWidth: 30,
|
||||
type: "Line",
|
||||
},
|
||||
standard: {
|
||||
sortOrder: "DEC",
|
||||
unit: "s",
|
||||
},
|
||||
};
|
||||
this.layout = this.layout.map((d: LayoutConfig) => {
|
||||
d.y = d.y + newWidget.h;
|
||||
@@ -119,10 +131,22 @@ export const dashboardStore = defineStore({
|
||||
w: 24,
|
||||
h: 12,
|
||||
i: String(children.length),
|
||||
metrics: ["service_resp_time"],
|
||||
queryMetricType: "readMetricsValues",
|
||||
type: "Widget",
|
||||
widget: {},
|
||||
graph: {},
|
||||
standard: {},
|
||||
widget: {
|
||||
title: "Title123",
|
||||
tips: "Tooltip123",
|
||||
},
|
||||
graph: {
|
||||
showBackground: true,
|
||||
barWidth: 30,
|
||||
type: "Line",
|
||||
},
|
||||
standard: {
|
||||
sortOrder: "DEC",
|
||||
unit: "s",
|
||||
},
|
||||
};
|
||||
if (this.layout[idx].children) {
|
||||
const items = children.map((d: LayoutConfig) => {
|
||||
|
Reference in New Issue
Block a user