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/08/27 01:23:50 UTC

[GitHub] wwwsoftwares edited a comment on issue #8947: 碰到一个现实问题找了1天api没有解决

wwwsoftwares edited a comment on issue #8947: 碰到一个现实问题找了1天api没有解决
URL: https://github.com/apache/incubator-echarts/issues/8947#issuecomment-416089110
 
 
   {
       backgroundColor: new echarts.graphic.RadialGradient(0.3, 0.3, 0.8, [{
           offset: 0,
           color: '#f7f8fa'
       }, {
           offset: 1,
           color: '#cdd0d5'
       }]),
       tooltip: {
           show:true,
           trigger:'item',
           formatter:(params , ticket , callback)=> {
               if ( params.data.value && params.data.msg )
                   return params.data.value+"<br/>"+params.data.msg;
               else {
                   return params.name;
               }
           }
       },
       legend: [{
           formatter: function(name) {
               return echarts.format.truncateText(name, 100, '14px Microsoft Yahei', '…');
           },
           tooltip: {
               show: true
           },
           textStyle:{
               fontSize:14
           },
           selectedMode: 'false',
           bottom: 20,
           data: []
       }],
       series: [{
           name: '详情',
           type: 'graph',
           layout: 'force',
           hoverAnimation:false,
           animation:false,
           
           force: {
               edgeLength: 50,
               repulsion: 200,
               gravity: 0.1
           },
           roam:'scale',
           nodeScaleRatio :0,
           textStyle: {
               fontSize: '30px'
           },
           
           data: [],
           links: [],
           categories: [],
           draggable:true,
           
           focusNodeAdjacency: true,
           dataZoom :[
               {
                   type:'inside',
                   start:80,
                   zoomOnMouseWheel:false,
                   xAxisIndex:[0],
                   zoomLock:true
               }
           ],
           label: {
               normal: {
                   show: true,
                   position: 'top',
   
               }
           },
           lineStyle: {
               normal: {
                   color: 'source',
                   curveness: 0,
                   type: "solid",
               },
           }
       }]
   }
   配置

----------------------------------------------------------------
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