F-loat / mpvue-echarts

📈 适用于 mpvue 的 echarts 组件
337 stars 91 forks source link

xAxis配置项axisPointer中设置富文本样式无效 #46

Closed smallsun0122 closed 5 years ago

smallsun0122 commented 6 years ago

image 如图,对这两行字体分别定义不同的样式和大小,但是富文本识别不了。

xAxis: { show: false, position: 'top', data: _this.dateList, axisPointer: { show: true, type: 'line', padding: [10, 0], label: { color: '#2b3038', backgroundColor: '#fff', shadowColor: '#fff', formatter: function (params) { return '{data|' + params.seriesData[0].value.toFixed(4) + '}{time|' + '\n' + params.value + '}' }, rich: { data: { color: '#2b3038', fontSize: 16 }, time: { color: '#b2b5b7', fontSize: 10 } }, lineHeight: 56 }, lineStyle: { color: '#CBD0D6', type: 'dotted', height: '243px' } } }

F-loat commented 6 years ago

看下这个 https://github.com/ecomfe/echarts-for-weixin/issues/344

smallsun0122 commented 6 years ago

是支持富文本,但是富文本设置样式无效呀?

F-loat commented 5 years ago

这类问题在官方仓库反馈吧