13.series.label

2020-08-07  本文已影响0人  半生_温暖纯良_Junzer

1.label a、b、c、d

https://blog.csdn.net/chelen_jak/article/details/81187968

2.rich样式

label: {
          normal: {
            show: true,
            position: 'right',
            offset: [15, 0],
            formatter: function (params) {
              console.log(params)
              return '{white|' + params.name + '} \n \n \n{yellow|' + params.data.value + '}';
            },
            //富文本模板 对应return中内容
            rich: {
              white: {
                color: 'white',
                // fontSize: 20,
                align: 'center'
              },
              yellow: {
                color: 'yellow',
                // fontSize: 30,
                align: 'center'
              }
            }
          }
        },
上一篇 下一篇

猜你喜欢

热点阅读