smallsun0122 opened a new issue #9449: echarts 指示器设置富文本样式无效
URL: https://github.com/apache/incubator-echarts/issues/9449
 
 
   问题描述:
   指示线上的文本标签可以设置不同的大小和颜色,通过富文本设置样式无效
   
   相关代码:
   `xAxis: {
             show: true,
             position: 'top',
             data: _this.series.dateList,
             axisPointer: {
               show: true,
               type: 'line',
               padding: [10, 0],
               label: {
                 color: '#2b3038',
                 fontSize: 14,
                 backgroundColor: '#fff',
                 shadowColor: '#fff',
                 formatter: function (params) {
                   return (
                     '{value|' +
                     params.seriesData[0].value.toFixed(4) +
                     '}' +
                     '\n' +
                     '{time|' +
                     params.value +
                     '}'
                   )
                 },
                 rich: {
                   value: {
                     fontSize: 16
                   },
                   time: {
                     fontSize: 12
                   }
                 }
               },
               lineStyle: {
                 color: '#CBD0D6',
                 type: 'dotted',
                 height: '243px'
               }
             }
           }`
   
   
![image](https://user-images.githubusercontent.com/22772199/48834072-cf72b780-edb7-11e8-8cd6-9d1d1978d133.png)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to