diff --git a/nezha-fronted/src/components/charts/line-chart-block.scss b/nezha-fronted/src/components/charts/line-chart-block.scss index 26a48a7a3..5f7d6b116 100644 --- a/nezha-fronted/src/components/charts/line-chart-block.scss +++ b/nezha-fronted/src/components/charts/line-chart-block.scss @@ -7,6 +7,36 @@ .clearfix{ margin-bottom: 20px; } +.legend-shape{ + display:inline-block; + margin-right:5px; + border-radius:10px; + width:15px; + height:5px; + vertical-align: middle; +} +.ft-gr{ + color:lightgray; +} +.legend-container{ + width:80%; + max-height:80px; + min-height:40px; + overflow-y: auto; + font-size:12px; + text-align:left; + margin:0 auto; +} +.legend-item{ + text-overflow:ellipsis; + white-space:nowrap; + width:100%; + overflow-x:hidden; + cursor:pointer; + display:inline-block; + float:left; + line-height: 20px; +} .line-chart-block { height: 100%; // min-height: 500px; diff --git a/nezha-fronted/src/components/charts/line-chart-block.vue b/nezha-fronted/src/components/charts/line-chart-block.vue index a831f6c46..83bb5adc1 100644 --- a/nezha-fronted/src/components/charts/line-chart-block.vue +++ b/nezha-fronted/src/components/charts/line-chart-block.vue @@ -2,7 +2,7 @@ @import './line-chart-block.scss';