jiayuu opened a new issue #9511: 关于force图表相关问题
URL: https://github.com/apache/incubator-echarts/issues/9511
 
 
   - 节点重叠,过多节点时节点重叠。
   - 节点拖拽,能否将节点位置定位到拖拽后位置,不弹回去。
   -  缩放问题,能否缩放时相应label字体大小也缩放.
   - edgeLabel 上的图标能否不旋转
   ```c
   options = {
       backgroundColor: '#f7f7f7',
       tooltip: {
         formatter: function (param) {
           if (param.dataType === 'edge') {  // 线
             // return param.value;
           } else // 点
             return param.data.name;
         }
       },
       series: [
         {
           symbol: 'circle', // path://
           type: 'graph',
           layout: 'force', // circular ,force
           animation: false,
           hoverAnimation:true,
           animationDurationUpdate: 100,
           animationEasingUpdate: 'quinticInOut',
           // focusNodeAdjacency: true,
           // legendHoverLink: true,
           repulsion: 1000,
           useUTC: false,
           symbolSize: 60,
           roam: true,
           draggable: true,
           nodeScaleRatio: 1,
           scaleLimit: {
             min:0.8,
             max: 2,
           },
           label: {
             normal: {
               show: true,
               fontSize: 14,
               fontWeight: 400,
               color: '#000',
               formatter:function(nodes){
                 return nodes.data.name.substring(0,6)
               }
             },
           },
           itemStyle:{
             // shadowColor: 'rgba(34,0,74,0.50)',
             // shadowBlur: 10,
             // boxShadow:'inset 0 0 37px 0 rgba(34,0,74,0.50)',
             color:'#f7f7f7',
             borderWidth:6,
           },
           force: {
             repulsion: 55,
             gravity: 0.01,
             edgeLength: 200
           },
           edgeLabel: {
             padding: 5,
             normal: {
               show: true,
               verticalAlign: 'top',
               backgroundColor: {
                 image: require('../../assets/images/file2.png'),
               },
               textStyle: {
                 symbolKeepAspect: true,
                 fontWeight: 200,
                 fontSize: 16,
               },
               formatter: "{c}"
             },
           },
           lineStyle: {
             normal: {
               opacity: 1,
               width: .5,
               curveness: 0
             }
           }
         },
       ]
     }
   ```
   
![20181203150737](https://user-images.githubusercontent.com/27951465/49358317-3162e380-f70d-11e8-9645-de681d7ab853.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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to