mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 09:00:50 +00:00
update timeline
This commit is contained in:
parent
441aabf2d2
commit
2a29a3a7db
@ -165,4 +165,20 @@ div.vis-tooltip {
|
|||||||
|
|
||||||
.vis-item {
|
.vis-item {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
height: 17px;
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vis-item.Error {
|
||||||
|
background-color: rgb(238 102 102 / 80%);
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vis-item.Normal {
|
||||||
|
background-color: #91cc75;
|
||||||
|
color: #333 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vis-item .vis-item-content {
|
||||||
|
padding: 0 5px !important;
|
||||||
}
|
}
|
||||||
|
@ -56,14 +56,15 @@ function visTimeline() {
|
|||||||
start: dateFormat(d.startTime),
|
start: dateFormat(d.startTime),
|
||||||
end: dateFormat(d.endTime),
|
end: dateFormat(d.endTime),
|
||||||
data: d,
|
data: d,
|
||||||
|
className: d.type,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
const items: any = new DataSet(events);
|
const items: any = new DataSet(events);
|
||||||
const options: any = {
|
const options: any = {
|
||||||
height: h,
|
height: h,
|
||||||
width: "100%",
|
width: "100%",
|
||||||
minHeight: "150px",
|
|
||||||
locale: "en",
|
locale: "en",
|
||||||
|
groupHeightMode: "fitItems",
|
||||||
autoResize: false,
|
autoResize: false,
|
||||||
tooltip: {
|
tooltip: {
|
||||||
overflowMethod: "cap",
|
overflowMethod: "cap",
|
||||||
|
Loading…
Reference in New Issue
Block a user