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/08/20 11:09:18 UTC

[GitHub] tmxklzp opened a new issue #8905: gauge组件的axisLabel属性下,设置文本相关字段配置:color/fontSize/fontWeight时无效;axisLabel.textStyle下设置才有效

tmxklzp opened a new issue #8905: gauge组件的axisLabel属性下,设置文本相关字段配置:color/fontSize/fontWeight时无效;axisLabel.textStyle下设置才有效
URL: https://github.com/apache/incubator-echarts/issues/8905
 
 
   
   ### One-line summary [问题简述]
   **gauge组件的axisLabel属性下,设置文本相关字段配置:color/fontSize/fontWeight时无效;axisLabel.textStyle下设置才有效**
   
   
   ### Expected behaviour [期望结果]
   期望结果:通过配置axisLabel.color属性将gauge组件默认的仪表板上的数字颜色更改为统一颜色;
   现在:直接在axisLabel下配置color属性没有产生效果,fontSize/fontWeight属性也没有效果,distance、formatter属性有正常效果;将如上三个没有产生效果的属性放入axisLabel.textStyle字段下,产生效果
   
   
   
   
   ### ECharts option [ECharts配置项]
   无效的配置
   ```javascript
   option = {
     series:[{
       type: 'gauge',
       ...
       axisLabel: {
         fontSize: 20,
         fontWeight: 'bold',
         color: "#000",
         distance: 5,
         formatter: '{value}',
       },
   }]
   }
   ```
   有效的配置
   ```javascript
   option = {
     series:[{
       type: 'gauge',
       ...
       axisLabel: {
         distance: 5,
         formatter: '{value}',
         textStyle: {
           fontSize: 20,
           fontWeight: 'bold',
           color: "#000",
         }
       },
   }]
   }
   ```
   
   

----------------------------------------------------------------
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