MrZhouZh opened a new issue #11875: graph links 设置 `label` 旋转问题
URL: https://github.com/apache/incubator-echarts/issues/11875
 
 
   ### Version
   4.2.1
   
   ### Reproduction link
   
[https://gallery.echartsjs.com/editor.html?c=xOXDUs6bf&v=1](https://gallery.echartsjs.com/editor.html?c=xOXDUs6bf&v=1)
   
   ### Steps to reproduce
   links: [{
       source: 0,
       target: 1,
       symbolSize: [5, 20],
       label: {
           normal: {
               show: true,
               position: 'middle',
                rotate: 90
            }
       },
       lineStyle: {
           normal: {
               width: 5,
                curveness: 0.2
            }
       }
   },
   ...
   ]
   
   ### What is expected?
   `links` 的 `label` 可以自定义角度旋转
   
   ### What is actually happening?
   在设置了 `position='middle'` 的前提下,设置 `rotate` 没有用, `links` 上的 `label` 
会随着线的方向垂直,如果是上下结构的两个点连接, `label` 的角度就会显得有些别扭
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to