You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/04/13 09:52:02 UTC

[GitHub] [incubator-echarts] 18124772589 opened a new issue #12423: emphasis配置itemStyle的边框,显示粗线不均匀

18124772589 opened a new issue #12423: emphasis配置itemStyle的边框,显示粗线不均匀
URL: https://github.com/apache/incubator-echarts/issues/12423
 
 
   Version
   4.2.1
   
   Steps to reproduce
   代码如下:
   let myChart = echarts.init(this.$refs.sunburstWarp)
               let option = {
                   // 是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。
                   animationThreshold: 10000,
                   hoverLayerThreshold: 500,
                   tooltip: {
                       padding: [6, 7, 7, 8],
                       position: function (point, params, dom, rect, size) {
                           // console.log(point, params, dom, rect, size)
                           return [point[0] + 15, point[1] - 30]
                       },
                       extraCssText: 'box-shadow: 0 2px 8px 0px rgba(0, 0, 0, 0.15);background: rgba(0, 0, 0, 0.75)',
                       formatter: function (params) {
                           // console.log(params)
                           if (!params.data.name) return ''
                           return `${params.data.name}:${params.data.count}人`
                       },
                   },
                   series: {
                       radius: ['0%', '100%'],
                       center: ['50%', '50%'],
                       type: 'sunburst',
                       sort: null,
                       highlightPolicy: 'none',
                       nodeClick: 'rootToNode',
                       data: this.projectRelationList,
                       levels: [
                           {
                               itemStyle: {
                                   color: 'rgb(255, 255, 255)'
                               },
                           }
                       ],
                       emphasis: {
                           itemStyle: {
                               borderColor: '#000',
                               borderWidth: 1,
                               borderType: 'solid',
                           }
                       },  
                       label: {
                           show: false
                       },
                       itemStyle: {
                           borderWidth: 0.5,
                       }
                   }
               }
               myChart.setOption(option)
   
   What is expected?
   鼠标移到扇区每一块扇区时,扇区的边框是一样粗细的
   
   What is actually happening?
   [鼠标移到扇区每一块扇区时,扇区的边框的3条边的粗细不一致](http://testm.jianzaogong.com/figure_04.png)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12423: emphasis配置itemStyle的边框,显示粗线不均匀

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12423: emphasis配置itemStyle的边框,显示粗线不均匀
URL: https://github.com/apache/incubator-echarts/issues/12423#issuecomment-612834086
 
 
   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,可以请使用 issue 模板重新创建 issue。
   
   如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 issue。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] closed issue #12423: emphasis配置itemStyle的边框,显示粗线不均匀

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #12423: emphasis配置itemStyle的边框,显示粗线不均匀
URL: https://github.com/apache/incubator-echarts/issues/12423
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org