echarts axisLabel绑定背景图

2021-11-08  本文已影响0人  Promise_Irene

在echarts里给axisLabel绑定背景图backgroundColor的方法:

// 给yAxis或者xAxis中data绑定数据
{
     value: '100',
     textStyle: { 
        backgroundColor: {  image: require('@/assets/img/chart/1.png') },
        padding: [11, 13] 
     } 
 }
上一篇 下一篇

猜你喜欢

热点阅读