diff options
author | Tao Shen <shentao@chinamobile.com> | 2019-08-21 02:50:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-08-21 02:50:36 +0000 |
commit | 51e06ad4f87797266fa0792d35c43e92836fe883 (patch) | |
tree | b2df7ac85e1298a67626e916f757c7f9d8c76489 | |
parent | 6e325eb872723174839f3d9911d0fd8d3756b07f (diff) | |
parent | 8a407e8af4eadd70216065d165fdd8b0828f8c58 (diff) |
Merge "feat:optimize chart text"
-rw-r--r-- | usecaseui-portal/src/app/components/charts/pie/pie.component.ts | 1 | ||||
-rw-r--r-- | usecaseui-portal/src/app/home/home.component.ts | 24 |
2 files changed, 13 insertions, 12 deletions
diff --git a/usecaseui-portal/src/app/components/charts/pie/pie.component.ts b/usecaseui-portal/src/app/components/charts/pie/pie.component.ts index b5142410..dc5c80a0 100644 --- a/usecaseui-portal/src/app/components/charts/pie/pie.component.ts +++ b/usecaseui-portal/src/app/components/charts/pie/pie.component.ts @@ -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, diff --git a/usecaseui-portal/src/app/home/home.component.ts b/usecaseui-portal/src/app/home/home.component.ts index 9ac099af..2b1f6765 100644 --- a/usecaseui-portal/src/app/home/home.component.ts +++ b/usecaseui-portal/src/app/home/home.component.ts @@ -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: "告警信息", |