diff --git a/nezha-fronted/src/assets/css/components/chart/chart.scss b/nezha-fronted/src/assets/css/components/chart/chart.scss index e2d0368eb..9b2cf0008 100644 --- a/nezha-fronted/src/assets/css/components/chart/chart.scss +++ b/nezha-fronted/src/assets/css/components/chart/chart.scss @@ -97,6 +97,7 @@ &.nz-chart__component--right, &.nz-chart__component--left { .legend-container { flex-direction: column; + padding-top: 25px; width: unset; max-width: 50%; max-height: unset; @@ -169,3 +170,34 @@ } } } +.nz-chart__tooltip { + .tooltip__row { + white-space: nowrap; + overflow-x: hidden; + text-overflow: ellipsis; + display: flex; + justify-content: space-between; + min-width: 150px; + max-width: 600px; + line-height: 18px; + font-size: 12px; + + .row__label { + max-width: 500px; + white-space: nowrap; + overflow-x: hidden; + text-overflow: ellipsis; + + .row__color-block { + display: inline-block; + margin-right: 5px; + border-radius: 10px; + width: 15px; + height: 5px; + } + } + .row__value { + padding-left: 5px; + } + } +} diff --git a/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue b/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue index 99c06d43c..373369f2d 100644 --- a/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue +++ b/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue @@ -1,5 +1,9 @@