Browse Source

[完善]油站柱状图名称

dev
邵佳豪 3 years ago
parent
commit
b851960924
  1. 11
      src/app/pages/criminal-records-admin/criminal-records-admin.component.ts

11
src/app/pages/criminal-records-admin/criminal-records-admin.component.ts

@ -182,7 +182,7 @@ export class CriminalRecordsAdminComponent implements OnInit {
formatter: function (value, index) {
let newParamsName = '';
const paramsNameNumber = value.length;
const provideNumber = 10;
const provideNumber = 1000;
const rowNumber = Math.ceil(paramsNameNumber / provideNumber);
if (paramsNameNumber > provideNumber) {
for (let p = 0; p < rowNumber; p++) {
@ -219,7 +219,7 @@ export class CriminalRecordsAdminComponent implements OnInit {
}
}
},
inverse: true
inverse: true//倒序
},
series:
@ -250,13 +250,12 @@ export class CriminalRecordsAdminComponent implements OnInit {
global: false // 缺省为 false
}
},
barWidth: '36%',
barWidth: '36%'
}
,
grid: {
left: '150px',
right: '80px',
left: '175px',
right: '60px',
bottom: '3px',
top: '36px'
},

Loading…
Cancel
Save