|
|
|
@ -138,9 +138,9 @@ export class EhartsStatisticsComponent implements OnInit {
|
|
|
|
|
return b.count - a.count |
|
|
|
|
} ) |
|
|
|
|
newData.forEach(element => { |
|
|
|
|
postNames.push(element.postName) |
|
|
|
|
catalogs.push(element.catalog) |
|
|
|
|
counts.push(element.count) |
|
|
|
|
postNames.push(element.postName ? element.postName : '暂无数据') |
|
|
|
|
catalogs.push(element.catalog ? element.catalog : '暂无数据') |
|
|
|
|
counts.push(element.count ? element.count : 0) |
|
|
|
|
}); |
|
|
|
|
this.echartsInit(postNames,catalogs,counts) |
|
|
|
|
} |
|
|
|
|