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/05/08 01:28:29 UTC

[GitHub] ymli1981 opened a new issue #8299: 小程序中同时用 折线图和关系图,关系图的连线箭头会偏移

ymli1981 opened a new issue #8299: 小程序中同时用 折线图和关系图,关系图的连线箭头会偏移
URL: https://github.com/apache/incubator-echarts/issues/8299
 
 
   var chu = 10;
    var data = [];
   var bdata = [];
   var ldata=[];
        
   
         item = {};
         item.name = "问题门";
         var r = 1 * Math.sin(65 * Math.PI / 180);
         item.size1 = 3;
         
         item.symbolSize = 50;
         item.value = [r, 245];
         bdata.push(item);
   
         var item1 = {};
         item1.name = "规律门";
         item1.value = [0, 0];
         item1.size1 = 3;
         item1.symbolSize = 50;
         bdata.push(item1);
   
         item = {};
         item.name = "实践门";
         item.size1 = 3;
         item.symbolSize = 50;
         r = 1 * Math.sin(65 * Math.PI / 180);
         item.value = [r, 65];
         bdata.push(item);
   var blink = {};
                   blink.source = "问题门";
                   blink.target = "规律门";
   
                   blink.lineStyle = {
                     normal: {
                       width: 1,
                       color: "#000",
                       curveness: 0.3
                     }
                   };
                   ldata.push(blink)
     for (var i = 65; i <= 90; i++) {
   
       var r = 1 * Math.sin(i * Math.PI / 180);
       data.push([r, i]);
     }
   
     for (var i = 90; i <= 180; i++) {
   
       var r = 1 * Math.sin((180 - i) * Math.PI / 180);
       data.push([r, i]);
     }
   
   
   
   
     for (var i = 360; i >= 270; i--) {
       var r = 1 * Math.sin((360 - i) * Math.PI / 180);
       data.push([r, i]);
     }
     for (var i = 270; i >= 245; i--) {
       var r = 1 * Math.sin((i - 180) * Math.PI / 180);
   
       data.push([r, i]);
     }
     
    var option = {
   
       legend: {
         show: false,
         
       },
       polar: {
         center: ["50%","50%"],
         radius: '100%'
       },
   
       angleAxis: {
         type: 'value',
         startAngle: 0,
         axisLine: {
           show: false,
           lineStyle: {
             color: "#fff"
           }
         },
         axisTick: {
           show: false
         },
         splitLine: {
           show: false
         },
       },
       radiusAxis: {
         splitLine: {
           show: false
         },
         axisLine: {
           show: false,
           lineStyle: {
             color: "#fff"
           }
         },
         axisTick: {
           show: false
         },
         min: 0
       },
       series: [{
         coordinateSystem: 'polar',
         name: 'line',
         type: 'line',
         lineStyle: {
           type: 'solid',
           width: 2,
           color: "#000"
         },
         showSymbol: false,
   
   
   
         data: data
       }, {
         type: 'graph',
         layout: 'none',
         symbolSize: 50,
   
         coordinateSystem: 'polar',
         roam: true,
   
         itemStyle: {
           color: "#fff",
           borderWidth: 2,
           borderColor: '#000'
         },
         edgeSymbol:['none','arrow'],
         edgeSymbolSize: [4, 10],
   
         data: bdata,
         links: ldata,
         
         label: {
           show: true,
   
           color: '#000',
           position: 'inside',
           fontSize: 12,
       
         },
        
           
   
       }],
       animation: true,
       animationDuration: 1000
     };

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