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/05/07 07:36:00 UTC

[GitHub] Lestry opened a new issue #8295: 4.1.0版本中使用SVG渲染bar、line的series label存在异常(报错、字体大小异常)

Lestry opened a new issue #8295: 4.1.0版本中使用SVG渲染bar、line的series label存在异常(报错、字体大小异常)
URL: https://github.com/apache/incubator-echarts/issues/8295
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   在使用SVG渲染时:
   1、series(type:'bar')中配置了显示label(show:true)的情况报错
   2、series(type:'line')中配置的label字体大小异常(截图中为fontSize:12的情况)
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:4.1.0
   + Browser version [浏览器类型和版本]:Chrome 66.0.3359.139 x64
   + OS Version [操作系统类型和版本]:Window 10 x64
   
   
   
   
   
   ### Expected behaviour [期望结果]
   1、正常渲染图表
   2、字体大小符合配置
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
    xAxis: [
           {
             type: 'category',
             data: ['本月', '上月'],
           }
       ],
       yAxis: [
           {
             type: 'value'
           }
       ],
       series: [
           {
               name: '数量',
               type: 'bar',
               silent: true,
               label: {
                   show: true,
                   position: 'top',
                   rotate: 0
               },
               data: [38, 42],
           }
       ]
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   ![image](https://user-images.githubusercontent.com/17736150/39689967-1916f2be-520b-11e8-93e9-20d9986654de.png)
   ![image](https://user-images.githubusercontent.com/17736150/39690291-29137b3c-520c-11e8-84dd-1f97e046fec0.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