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

Loading…
Cancel
Save