diff --git a/src/assets/css/components/views/charts/NetworkOverviewLine.scss b/src/assets/css/components/views/charts/NetworkOverviewLine.scss index c2d2a0bb..72a96401 100644 --- a/src/assets/css/components/views/charts/NetworkOverviewLine.scss +++ b/src/assets/css/components/views/charts/NetworkOverviewLine.scss @@ -1,8 +1,91 @@ .line { height: 100%; width: 100%; + position: relative; #chart { width: 1288px; height: 340px; } + .line-select { + line-height: 24px; + top: 10px; + right: 20px; + display: flex; + position: absolute; + .line-select-metric,.line-select-reference-line { + display: flex; + span { + font-family: NotoSansSChineseRegular; + font-size: 12px; + color: #575757; + font-weight: 400; + } + .line-select__operation { + height: 24px; + margin-left: 3px; + background: #FFFFFF; + box-shadow: 0 2px 4px 0 rgba(51,51,51,0.10); + border-radius: 2px; + .option__select { + .el-input__inner { + width: 80px; + height: 24px; + text-align: left; + line-height: 24px; + color: #2C72C6; + } + .el-input__suffix { + display: flex; + .el-input__suffix-inner { + line-height: 24px; + .el-select__caret { + line-height: 24px; + width: 16px; + color: #575757; + } + } + } + } + .option__select.select-column { + .el-input__inner { + width: 86px; + padding-left: 8px; + } + } + .icon-group-divide { + height: 14px; + width: 1px; + background-color: $--color-primary; + } + i { + font-size: 12px; + } + } + } + .line-select-reference-line { + margin-left: 20px; + } + } + .line-value { + position: absolute; + top: 30px; + left: 27px; + height: 34px; + line-height: 34px; + display: flex; + .line-value-mpackets { + margin-right: 30px; + span:nth-of-type(1) { + font-size: 28px; + color: #353636; + font-weight: 500; + margin-right: 4px; + } + span:nth-of-type(2) { + font-size: 12px; + color: #575757; + font-weight: 400; + } + } + } } diff --git a/src/utils/constants.js b/src/utils/constants.js index 241606ae..de84ad96 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -193,6 +193,8 @@ export const chartColor1 = ['#E26154', '#E48E4D', '#E7B34E', '#DAC74B', '#88AF65 export const chartColor2 = ['#86B565', '#A37FA7', '#EFAFC7', '#EFC48F', '#B4B1A8'] +export const chartColor3 = ['#00A7AB', '#7FA054', '#35ADDA', '#E48F3E', '#98709B'] + export const iso36112 = { [storageKey.iso36112Capital]: 'data/countriesWithCapital', [storageKey.iso36112WorldLow]: 'worldChinaLow', diff --git a/src/views/charts2/charts/NetworkOverviewLine.vue b/src/views/charts2/charts/NetworkOverviewLine.vue index 826c4b5e..30bae4a0 100644 --- a/src/views/charts2/charts/NetworkOverviewLine.vue +++ b/src/views/charts2/charts/NetworkOverviewLine.vue @@ -1,27 +1,39 @@