Browse Source

[完善]调节图表位置

master
邵佳豪 4 years ago
parent
commit
decd1d43eb
  1. 10
      src/app/statistic-analysis/home/home.component.ts

10
src/app/statistic-analysis/home/home.component.ts

@ -317,8 +317,8 @@ export class HomeComponent implements OnInit {
{ {
name: '访问来源', name: '访问来源',
type: 'pie', type: 'pie',
radius: '65%', radius: '60%',
center: ['50%', '67%'], center: ['50%', '58%'],
label:{ label:{
show:true, show:true,
//fontSize:10, //fontSize:10,
@ -361,8 +361,8 @@ export class HomeComponent implements OnInit {
{ {
name: '访问来源', name: '访问来源',
type: 'pie', type: 'pie',
radius: '65%', radius: '60%',
center: ['50%', '67%'], center: ['50%', '58%'],
label:{ label:{
show:true, show:true,
formatter:'{b}\n{d|{c}份}', formatter:'{b}\n{d|{c}份}',
@ -402,7 +402,6 @@ export class HomeComponent implements OnInit {
//新增、删除单位统计 //新增、删除单位统计
chartDwsjcj chartDwsjcj
chartDwsjcjOptionsZhi = { chartDwsjcjOptionsZhi = {
// color: ['#FB33C2', '#00CFF0', '#2C3DE0'],
// 标题 // 标题
title: { title: {
text: '新增、删除单位统计', text: '新增、删除单位统计',
@ -412,6 +411,7 @@ export class HomeComponent implements OnInit {
grid: { grid: {
left: 30, left: 30,
right: 0, right: 0,
bottom:20
}, },
//图例 //图例
legend: { legend: {

Loading…
Cancel
Save