diff --git a/package-lock.json b/package-lock.json
index eebfd21f..a7b6d0f5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -13,6 +13,7 @@
"d3-tip": "^0.9.1",
"echarts": "^5.2.2",
"element-plus": "^2.0.2",
+ "lodash": "^4.17.21",
"pinia": "^2.0.5",
"three": "^0.131.3",
"three-orbit-controls": "^82.1.0",
diff --git a/package.json b/package.json
index eb7a151a..ba51e014 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
"d3-tip": "^0.9.1",
"echarts": "^5.2.2",
"element-plus": "^2.0.2",
+ "lodash": "^4.17.21",
"pinia": "^2.0.5",
"three": "^0.131.3",
"three-orbit-controls": "^82.1.0",
diff --git a/src/views/dashboard/related/trace/Content.vue b/src/assets/icons/spinner.svg
old mode 100644
new mode 100755
similarity index 66%
rename from src/views/dashboard/related/trace/Content.vue
rename to src/assets/icons/spinner.svg
index 09c4ae00..8bbc6499
--- a/src/views/dashboard/related/trace/Content.vue
+++ b/src/assets/icons/spinner.svg
@@ -4,15 +4,13 @@ this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -->
-
-
-
-
+
+
diff --git a/src/views/dashboard/controls/Trace.vue b/src/views/dashboard/controls/Trace.vue
index 34c86558..edb8078b 100644
--- a/src/views/dashboard/controls/Trace.vue
+++ b/src/views/dashboard/controls/Trace.vue
@@ -19,7 +19,7 @@ limitations under the License. -->
-
+
@@ -27,7 +27,7 @@ limitations under the License. -->
import type { PropType } from "vue";
import Filter from "../related/trace/Filter.vue";
import TraceList from "../related/trace/TraceList.vue";
-import Content from "../related/trace/Content.vue";
+import Detail from "../related/trace/Detail.vue";
/*global defineProps */
defineProps({
diff --git a/src/views/dashboard/related/trace/components/Detail.vue b/src/views/dashboard/related/trace/Detail.vue
similarity index 95%
rename from src/views/dashboard/related/trace/components/Detail.vue
rename to src/views/dashboard/related/trace/Detail.vue
index e87edb9a..0371c003 100644
--- a/src/views/dashboard/related/trace/components/Detail.vue
+++ b/src/views/dashboard/related/trace/Detail.vue
@@ -92,14 +92,20 @@ limitations under the License. -->
+
+
diff --git a/src/views/dashboard/related/trace/components/utils/d3-trace.ts b/src/views/dashboard/related/trace/components/utils/d3-trace.ts
new file mode 100644
index 00000000..253b1909
--- /dev/null
+++ b/src/views/dashboard/related/trace/components/utils/d3-trace.ts
@@ -0,0 +1,313 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import * as d3 from "d3";
+import d3tip from "d3-tip";
+import { Span, Trace } from "@/types/trace";
+
+const type = {
+ MQ: "#bf99f8",
+ Http: "#72a5fd",
+ Database: "#ff6732",
+ Unknown: "#ffc107",
+ Cache: "#00bcd4",
+ RPCFramework: "#ee4395",
+};
+export default class ListGraph {
+ private barHeight = 48;
+ private handleSelectSpan: Nullable<(i: Trace) => void> = null;
+ private el: Nullable = null;
+ private i = 0;
+ private width = 0;
+ private height = 0;
+ private svg: any = null;
+ private treemap: any = null;
+ private tip: any = null;
+ private row: any[] = [];
+ private data: any = [];
+ private min = 0;
+ private max = 0;
+ private list: any[] = [];
+ private xScale: any = null;
+ private xAxis: any = null;
+ private sequentialScale: any = null;
+ private root: any = null;
+ constructor(el: HTMLDivElement, handleSelectSpan: (i: Trace) => void) {
+ this.handleSelectSpan = handleSelectSpan;
+ this.el = el;
+ this.width = el.clientWidth;
+ this.height = el.clientHeight;
+ this.svg = d3
+ .select(this.el)
+ .append("svg")
+ .attr("class", "trace-list-dowanload")
+ .attr("width", this.width)
+ .attr("height", this.height);
+ this.treemap = d3.tree().size([this.height * 0.7, this.width]);
+ this.tip = (d3tip as any)()
+ .attr("class", "d3-tip")
+ .offset([-8, 0])
+ .html(
+ (d: any) => `
+