You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/11/21 10:05:32 UTC

[GitHub] smallsun0122 opened a new issue #9449: echarts 指示器设置富文本样式无效

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org