summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/components/charts/pie
diff options
context:
space:
mode:
authorzhangab <zhanganbing@chinamobile.com>2019-01-09 16:30:41 +0800
committerzhangab <zhanganbing@chinamobile.com>2019-01-09 16:30:55 +0800
commitee500f6f43efc488033f7be223a08b0dbe087af6 (patch)
tree38e65d93bbe74ae8290ba6de8e822c71019e9947 /usecaseui-portal/src/app/components/charts/pie
parentbd4942df4f188a4ec273a5ec95c99acb1ce6bb75 (diff)
Support NS Package Query for VF-C
Change-Id: I0501df1d699baea97149a404708b55a65f15d95e Issue-ID: USECASEUI-159 Signed-off-by: zhangab <zhanganbing@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/components/charts/pie')
-rw-r--r--usecaseui-portal/src/app/components/charts/pie/pie.component.ts11
1 files changed, 3 insertions, 8 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 8a5e2100..69d758e3 100644
--- a/usecaseui-portal/src/app/components/charts/pie/pie.component.ts
+++ b/usecaseui-portal/src/app/components/charts/pie/pie.component.ts
@@ -20,6 +20,7 @@ export class PieComponent implements OnInit {
height: this.initData.height
};
this.pieOption = {
+ backgroundColor:this.initData.option.backgroundColor,
legend: this.initData.option.legend,
color:this.initData.option.color,
series : [
@@ -29,19 +30,13 @@ export class PieComponent implements OnInit {
radius : this.initData.option.series[0].radius,
center: ['50%', '45%'],
legendHoverLink: false,
- hoverOffset: 5,
+ hoverOffset: 3,
avoidLabelOverlap: false,
label: this.initData.option.series[0].label,
data:[
{value:1, name:'11'}
],
- itemStyle: {
- emphasis: {
- shadowBlur: 5,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- }
- }
+ itemStyle: this.initData.option.series[0].itemStyle
}
]
}