diff --git a/nezha-fronted/src/components/charts/chart.scss b/nezha-fronted/src/components/charts/chart.scss
index b6dd1efbb..531de283e 100644
--- a/nezha-fronted/src/components/charts/chart.scss
+++ b/nezha-fronted/src/components/charts/chart.scss
@@ -41,6 +41,9 @@
.legend-container .option-th:hover{
cursor:pointer;
}
+.legend-option-cell{
+ white-space: nowrap;padding: 0px 5px 0px 5px;
+}
.nz-icon-warning{
color: #e6a23c;
}
diff --git a/nezha-fronted/src/components/charts/chartPreview.vue b/nezha-fronted/src/components/charts/chartPreview.vue
index c464efab0..d29d857aa 100644
--- a/nezha-fronted/src/components/charts/chartPreview.vue
+++ b/nezha-fronted/src/components/charts/chartPreview.vue
@@ -93,7 +93,7 @@
|
-
+ |
{{legendOption.option}}
|
@@ -106,7 +106,7 @@
- {{formatLegendData(item[legendOption.option])}} |
+ {{formatLegendData(item[legendOption.option])}} |
diff --git a/nezha-fronted/src/components/charts/line-chart-block.vue b/nezha-fronted/src/components/charts/line-chart-block.vue
index 054c8ed49..180de7836 100644
--- a/nezha-fronted/src/components/charts/line-chart-block.vue
+++ b/nezha-fronted/src/components/charts/line-chart-block.vue
@@ -67,9 +67,9 @@
- |
+ |
-
+ |
{{legendOption.option}}
|
@@ -82,7 +82,7 @@
- {{formatLegendData(item[legendOption.option])}} |
+ {{formatLegendData(item[legendOption.option])}} |
@@ -145,9 +145,9 @@
- |
+ |
-
+ |
{{legendOption.option}}
|
@@ -160,7 +160,7 @@
- {{formatLegendData(item[legendOption.option])}} |
+ {{formatLegendData(item[legendOption.option])}} |