ecomfe / echarts-for-weixin

基于 Apache ECharts 的微信小程序图表库

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

小程序自定义tooltip的样式无效

Aroooooo opened this issue · comments

在微信小程序中使用echarts时,我想在tooltip中自定义样式,使用富文本(rich),但是formatter返回的数据并没有应用样式。

      tooltip: {
        show:true,
        trigger: 'axis',
        renderMode:'richText',
        rich:{
          tooltipStyle:{color:'#FAAA39',fontSize:30},
      formatter:function(val){
          return '{tooltipStyle|123}'
    },
  },
    },

如果直接返回小程序格式的样式的wxml代码,也不会渲染出来,会直接展示源码。这是还不支持自定义tooltip还是我写错了?