|
|
|
@ -58,7 +58,11 @@ export class AddUnitOneComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
for(var i=0;i<this.tabledata[0].organizationStatistics.organizations.length;i++){ |
|
|
|
|
this.orData.push(this.tabledata[0].organizationStatistics.organizations[i]) |
|
|
|
|
this.lengthOrData.push(this.tabledata[0].organizationStatistics.organizations[i].organizationName) |
|
|
|
|
this.lengthOrData.push(this.tabledata[0].organizationStatistics.organizations[i].organizationName) |
|
|
|
|
/* if(this.tabledata[0].organizationStatistics.organizations[i].count>0){ |
|
|
|
|
|
|
|
|
|
} */ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
this.buildData=this.buildData.map(v=>{return {name: v.buildingTypeName,value:v.count,id:v.buildingTypeId}}) |
|
|
|
|
this.orData=this.orData.map(v=>{return {name: v.organizationName,value:v.count,id:v.organizationId}}) |
|
|
|
@ -67,9 +71,10 @@ export class AddUnitOneComponent implements OnInit {
|
|
|
|
|
title: { |
|
|
|
|
text:tid=="pieone"? `组织机构统计(${this.tabledata[0].organizationStatistics.totalCount}家)`:`建筑类型统计(${this.tabledata[0].buildingTypeStatistics.totalCount}家)`, |
|
|
|
|
left: 'center', |
|
|
|
|
top: "5%", |
|
|
|
|
//top: "5%",
|
|
|
|
|
//bottom:800,
|
|
|
|
|
textStyle: { |
|
|
|
|
fontSize:31 |
|
|
|
|
fontSize:28 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
tooltip: { |
|
|
|
@ -82,11 +87,14 @@ export class AddUnitOneComponent implements OnInit {
|
|
|
|
|
position:this.echartsData.tableTooltipNoShow2 |
|
|
|
|
}, |
|
|
|
|
legend: { |
|
|
|
|
//type: tid=="pieone"?'scroll':'',
|
|
|
|
|
orient: 'vertical', |
|
|
|
|
right: 0, |
|
|
|
|
top:80, |
|
|
|
|
left: tid=="pieone"?0:650, |
|
|
|
|
//right:30,
|
|
|
|
|
//top:100,
|
|
|
|
|
bottom:tid=="pieone"?600:500, |
|
|
|
|
textStyle:{ |
|
|
|
|
fontSize:14, |
|
|
|
|
fontSize:12, |
|
|
|
|
color:"#000000" |
|
|
|
|
}, |
|
|
|
|
data: tid=="pieone"?this.lengthOrData:this.lengthBuildData |
|
|
|
@ -95,12 +103,14 @@ export class AddUnitOneComponent implements OnInit {
|
|
|
|
|
{ |
|
|
|
|
name: '访问来源', |
|
|
|
|
type: 'pie', |
|
|
|
|
radius: '60%', |
|
|
|
|
radius: '70%', |
|
|
|
|
center: ['45%', '53%'], |
|
|
|
|
top:300, |
|
|
|
|
left:30, |
|
|
|
|
label:{ |
|
|
|
|
show:true, |
|
|
|
|
fontSize:14, |
|
|
|
|
formatter:'{b}{c}家\n{d|({d}%)}', |
|
|
|
|
formatter:'{b}\n{c}家{d|({d}%)}', |
|
|
|
|
rich: { |
|
|
|
|
d: { |
|
|
|
|
align: 'center', |
|
|
|
|