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 2019/01/08 12:39:25 UTC

[GitHub] Irislm opened a new issue #9712: why not show tooltip?

Irislm opened a new issue #9712: why not show tooltip?
URL: https://github.com/apache/incubator-echarts/issues/9712
 
 
   option = {
       series: [
         {
           top: '20',
           left: '35',
           bottom: '30',
           type: 'graph',
           symbol: 'rect',
           symbolSize: [120, 30],
           symbolOffset: [30, 0],
           label: {
             normal: {
               show: true,
               formatter: (params) => {
                 if (params.name.length > 9) {
                   return `${params.name.slice(0, 8)}...`;
                 }
                 return params.name;
               },
             },
           },
           edgeSymbol: ['circle', 'arrow'],
           edgeSymbolSize: [0, 10],
           data: [{
                   id: '1',
                   name: '2222222222',
                   x: 0,
                   y: 0,
                   itemStyle: {
                   normal: {
                     color: '#fff',
                     borderColor: '#929292',
                     borderWidth: 1,
                   },
             },
             label: {
               normal: {
                 show: true,
                 color: '#929292',
               },
             },
             tooltip: {
               trigger: 'item',
               formatter: (params) => {
                 return params.name;
               },
             },
           }],
           links: [{
               source: "30",
               target: "29",
           }],
           lineStyle: {
             normal: {
               opacity: 0.9,
               width: 2,
               curveness: 0,
             },
           },
         },
       ],
    
   };
   

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