aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-portal
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-08-20 14:28:59 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-08-20 15:22:04 +0800
commit8a407e8af4eadd70216065d165fdd8b0828f8c58 (patch)
tree1cc4c062f0817339848dffecc3de9a330e9d7d45 /usecaseui-portal
parentebd842c6737c3a2078a4d33babc4048e9bbaaf86 (diff)
feat:optimize chart text
Change-Id: I5adc594c1662640323bd113a87f5e3b294c4295c Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal')
-rw-r--r--usecaseui-portal/src/app/components/charts/pie/pie.component.ts1
-rw-r--r--usecaseui-portal/src/app/home/home.component.ts24
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: "告警信息",