mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-17 16:15:25 +00:00
update legend
This commit is contained in:
parent
85c667396c
commit
6ee0016710
@ -27,14 +27,14 @@ export default function topoLegend(
|
|||||||
.append("image")
|
.append("image")
|
||||||
.attr("width", 30)
|
.attr("width", 30)
|
||||||
.attr("height", 30)
|
.attr("height", 30)
|
||||||
.attr("x", clientWidth - 200)
|
.attr("x", clientWidth - 140)
|
||||||
.attr("y", clientHeight + (item === "CUBEERROR" ? 50 : 0))
|
.attr("y", clientHeight + (item === "CUBEERROR" ? 50 : 0))
|
||||||
.attr("xlink:href", () =>
|
.attr("xlink:href", () =>
|
||||||
item === "CUBEERROR" ? icons.CUBEERROR : icons.CUBE
|
item === "CUBEERROR" ? icons.CUBEERROR : icons.CUBE
|
||||||
);
|
);
|
||||||
graph
|
graph
|
||||||
.append("text")
|
.append("text")
|
||||||
.attr("x", clientWidth - 160)
|
.attr("x", clientWidth - 110)
|
||||||
.attr("y", clientHeight + (item === "CUBEERROR" ? 70 : 20))
|
.attr("y", clientHeight + (item === "CUBEERROR" ? 70 : 20))
|
||||||
.text(() => {
|
.text(() => {
|
||||||
const desc = description || {};
|
const desc = description || {};
|
||||||
|
Loading…
Reference in New Issue
Block a user