echarts 柱状图条柱顶部或者右侧 显示数字

series: [
        {
          type: 'bar',
          barWidth: 30,
          data: [193, 234, 310, 121, 1341, 68180],
          itemStyle: {
            normal: {
              label: {
                show: true,		// 开启显示
                distance: 20,     // 条柱之间的距离
                position: 'right',	// 在上方top在右侧right显示
                textStyle: {	    // 数值样式
                  color: 'black',
                  fontSize: 12
                }
              }
            }
          }
        }
      ]

猜你喜欢

转载自blog.csdn.net/hzxOnlineOk/article/details/109022983