Ovilia edited a comment on issue #9210: fix #9182 Graph    label.rotate is 
invalid
URL: 
https://github.com/apache/incubator-echarts/pull/9210#issuecomment-429765169
 
 
   `data.label` should also be supported. Test example: 
   
   ```js
   var option = {
       title: {
           text: 'Graph 简单示例'
       },
       tooltip: {},
       animationDurationUpdate: 1500,
       animationEasingUpdate: 'quinticInOut',
       series : [
           {
               type: 'graph',
               layout: 'none',
               symbolSize: 50,
               roam: true,
               label: {
                      show: true,
                       rotate: 30,
                       fontWeight:5,
                       fontSize: 26,
                       color: "#000",
                       distance: 15,
                       position: 'inside',
                       verticalAlign: 'middle'
               },
               edgeSymbol: ['circle', 'arrow'],
               edgeSymbolSize: [4, 10],
               edgeLabel: {
                   normal: {
                       textStyle: {
                           fontSize: 20
                       }
                   }
               },
               data: [{
                   name: 'rotate 30',
                   x: 300,
                   y: 300
               }, {
                   name: 'rotate -30',
                   x: 500,
                   y: 600,
                   label: {
                       rotate: -30
                   }
               }],
               emphasis: {
                   label: {
                       rotate: 45
                   }
               }
           }
       ]
   }
   ```

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


With regards,
Apache Git Services

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

Reply via email to