feat:optimize chart text 12/93912/2
authorcyuamber <xuranyjy@chinamobile.com>
Tue, 20 Aug 2019 06:28:59 +0000 (14:28 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Tue, 20 Aug 2019 07:22:04 +0000 (15:22 +0800)
Change-Id: I5adc594c1662640323bd113a87f5e3b294c4295c
Issue-ID: USECASEUI-307
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/components/charts/pie/pie.component.ts
usecaseui-portal/src/app/home/home.component.ts

index b514241..dc5c80a 100644 (file)
@@ -38,6 +38,7 @@ export class PieComponent implements OnInit {
       backgroundColor:this.initData.option.backgroundColor,
       legend: this.initData.option.legend,
       color:this.initData.option.color,
+      tooltip: this.initData.option.tooltip || '',
       series : [
           {
               name: this.initData.option.series[0].name,
index 9ac099a..2b1f676 100644 (file)
@@ -133,11 +133,11 @@ export class HomeComponent implements OnInit {
                     x2: 0,
                     y2: 1,
                     colorStops: [{
-                        offset: 0, color: '#FB93C2' // 0% 处的颜色
+                        offset: 0, color: '#FB93C2' // 0% color
                     }, {
-                        offset: 1, color: '#FB7788' // 100% 处的颜色
+                        offset: 1, color: '#FB7788' // 100% color
                     }],
-                    globalCoord: false // 缺省为 false
+                    globalCoord: false 
                 }, {
                     type: 'linear',
                     x: 0,
@@ -145,11 +145,11 @@ export class HomeComponent implements OnInit {
                     x2: 0,
                     y2: 1,
                     colorStops: [{
-                        offset: 0, color: '#A6BFE4' // 0% 处的颜色
+                        offset: 0, color: '#A6BFE4' // 0% color
                     }, {
-                        offset: 1, color: '#7A8BAE' // 100% 处的颜色
+                        offset: 1, color: '#7A8BAE' // 100% color
                     }],
-                    globalCoord: false // 缺省为 false
+                    globalCoord: false 
                 }],
             series: [{
                 name: "告警信息",
@@ -198,11 +198,11 @@ export class HomeComponent implements OnInit {
                     x2: 0,
                     y2: 1,
                     colorStops: [{
-                        offset: 0, color: '#FB93C2' // 0% 处的颜色
+                        offset: 0, color: '#FB93C2' // 0% color
                     }, {
-                        offset: 1, color: '#FB7788' // 100% 处的颜色
+                        offset: 1, color: '#FB7788' // 100% color
                     }],
-                    globalCoord: false // 缺省为 false
+                    globalCoord: false 
                 }, {
                     type: 'linear',
                     x: 0,
@@ -210,11 +210,11 @@ export class HomeComponent implements OnInit {
                     x2: 0,
                     y2: 1,
                     colorStops: [{
-                        offset: 0, color: '#A6BFE4' // 0% 处的颜色
+                        offset: 0, color: '#A6BFE4' // 0% 
                     }, {
-                        offset: 1, color: '#7A8BAE' // 100% 处的颜色
+                        offset: 1, color: '#7A8BAE' // 100% 
                     }],
-                    globalCoord: false // 缺省为 false
+                    globalCoord: false 
                 }],
             series: [{
                 name: "告警信息",