柱状图标签
This commit is contained in:
@@ -193,6 +193,7 @@ export default {
|
||||
|
||||
initEchart(data) {
|
||||
var option = {
|
||||
tooltip: {},
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
data: data.map((v) => v.name.replace('数量', '').replace('和操办登记', '')),
|
||||
@@ -225,7 +226,7 @@ export default {
|
||||
},
|
||||
},
|
||||
axisLabel: {
|
||||
show: true, //是否显示刻度标签
|
||||
show: true,
|
||||
interval: 0,
|
||||
},
|
||||
},
|
||||
@@ -244,6 +245,13 @@ export default {
|
||||
color: '#919191',
|
||||
fontSize: 16,
|
||||
},
|
||||
formatter: function (params) {
|
||||
if (params.value > 0) {
|
||||
return params.value
|
||||
} else {
|
||||
return ' '
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user