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