feat:Optimize legend and tooltip of slicing monitor page 94/99794/1
authorcyuamber <xuranyjy@chinamobile.com>
Thu, 19 Dec 2019 08:11:55 +0000 (16:11 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Thu, 19 Dec 2019 08:12:00 +0000 (16:12 +0800)
Change-Id: I1747cac83a5d60d50c230dcafdb25c6f8828a2fe
Issue-ID: USECASEUI-370
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/views/fcaps/monitor-5g/monitor-5g.component.ts
usecaseui-portal/src/app/views/fcaps/monitor-5g/monitorEchartsConfig.ts

index bfee94f..8216669 100644 (file)
@@ -109,6 +109,7 @@ export class Monitor5gComponent implements OnInit {
                 this.trafficChartData = {
                     legend: {
                         orient: 'vertical',
+                        type: 'scroll',
                         left: '0px',
                         bottom: '0px',
                         itemWidth: 10,
@@ -148,6 +149,7 @@ export class Monitor5gComponent implements OnInit {
                 this.onlineuserChartData = {
                     legend: {
                         bottom: '0px',
+                        type: 'scroll',
                         data: this.onlineuserLegend
                     },
                     xAxis: {
@@ -181,6 +183,7 @@ export class Monitor5gComponent implements OnInit {
                 this.bandwidthChartData = {
                     legend: {
                         bottom: '0px',
+                        type: 'scroll',
                         data: this.bandwidthLegend
                     },
                     xAxis: {
index e2bde44..34f3b59 100644 (file)
@@ -7,6 +7,7 @@ export const pieChartconfig = {
         },
         legend: {
             orient: 'vertical',
+            type: 'scroll',
             left: '0px',
             bottom: '0px',
             itemWidth: 10,
@@ -37,8 +38,21 @@ export const pieChartconfig = {
 export const lineChartconfig = {
     height: 320,
     option: {
+        "tooltip": {
+            "trigger": "axis",
+            "axisPointer": {
+                "type": "line",
+                textStyle: {
+                    color: "#fff"
+                },
+                lineStyle: {
+                    color: '#ccc'
+                }
+            },
+        },
         legend: {
             bottom: '0px',
+            type: 'scroll',
             data: []
         },
         xAxis: {