You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/09/04 12:28:17 UTC

[GitHub] [echarts] 542473232 opened a new issue, #17612: [Feature]

542473232 opened a new issue, #17612:
URL: https://github.com/apache/echarts/issues/17612

   ### What problem does this feature solve?
   
   1 在关系图中 怎么让一个节点指向自己 并且有箭头显示  像这样的
   ![image](https://user-images.githubusercontent.com/65716967/188313392-e92e1f5d-f7bf-4a0e-8a01-297e1ee66112.png)
   
   2怎么现实的label不随着line方向展示 而是调整为水平的呢
   ![image](https://user-images.githubusercontent.com/65716967/188313434-6ec31220-c88b-47d7-bb8f-eda95e74eb55.png)
   
   
   ### What does the proposed API look like?
   
   option = {
     title: {
       text: 'Basic Graph'
     },
     tooltip: {},
     animationDurationUpdate: 1500,
     animationEasingUpdate: 'quinticInOut',
     series: [
       {
         type: 'graph',
         layout: 'none',
          symbol:'rect',
         symbolSize: [140,100],
         roam: true,
         label: {
           show: true
         },
        
         edgeSymbol: ['circle', 'arrow'],
         edgeSymbolSize: [2, 10],
         edgeLabel: {
           fontSize: 20
         },
         data: [
           {
             name: '接受',
             value:791,
             x: 100,
             y: 300,
             symbolSize: [140,50],
            label:{
              formatter:'{b|{b}}\n{c|{c}}',
              rich:{
                b:{
                  fontSize:20
                },
                c:{
                  fontSize:15,
                  align:'center'
                }
              }
            }
           },
           {
             name: '接受完成',
             value:700,
             x: 100,
             y: 400,
             symbolSize: [140,50],
            label:{
              formatter:'{b|{b}}\n{c|{c}}',
              rich:{
                b:{
                  fontSize:20
                },
                c:{
                  fontSize:15,
                  align:'center'
                }
              }
            }
           },
           {
             name: '数据收集',
             x: 100,
             y: 900
           },
           {
             name: '批准',
             x: 100,
             y: 1200
           },
       
         ],
         links: [
           {
             source: '接受',
             target: '接受完成',
             symbolSize: [2, 10],
             value:500,
             label: {
               show: true,
               formatter:'{c}'
             },
              lineStyle:{
                type:'dashed',
                curveness: 5
               }
           }, {
             source: '接受完成',
             target: '数据收集',
             symbolSize: [2, 10],
             value:500,
             label: {
               show: true,
               formatter:'{c}'
             },
             
           },{
             source: '接受完成',
             target: '批准',
             symbolSize: [2, 10],
             value:700,
             label: {
               show: true,
               formatter:'{c}'
             },
              
           },{
             source: '数据收集',
             target: '批准',
             symbolSize: [2, 10],
             value:200,
             label: {
               show: true,
               formatter:'{b|{c}}',
                rich:{
                b:{
                  fontSize:200,
                },
                c:{
                  fontSize:15,
                  align:'center'
                }
              }
             },
            
           }
         ],
         
         lineStyle: {
           opacity: 1,
           width: 5,
           curveness: 0.4
         }
       }
     ]
   };


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] closed issue #17612: [Feature]

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #17612: [Feature] 
URL: https://github.com/apache/echarts/issues/17612


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] Ovilia commented on issue #17612: 关系图中怎么让一个节点指向自己 并且有箭头显示 像这样的

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #17612:
URL: https://github.com/apache/echarts/issues/17612#issuecomment-1236508989

   Please follow #15405


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] Ovilia closed issue #17612: 关系图中怎么让一个节点指向自己 并且有箭头显示 像这样的

Posted by GitBox <gi...@apache.org>.
Ovilia closed issue #17612: 关系图中怎么让一个节点指向自己 并且有箭头显示 像这样的
URL: https://github.com/apache/echarts/issues/17612


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #17612: 关系图中怎么让一个节点指向自己 并且有箭头显示 像这样的

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #17612:
URL: https://github.com/apache/echarts/issues/17612#issuecomment-1236328624

   @542473232 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   How to make a node point to itself in the relationship graph and have arrows displayed like this
   
   **BODY**
   
   ### What problem does this feature solve?
   
   1 In the relationship graph, how to make a node point to itself and have arrows displayed like this
   ![image](https://user-images.githubusercontent.com/65716967/188313392-e92e1f5d-f7bf-4a0e-8a01-297e1ee66112.png)
   
   2 How the real label is not displayed with the line direction but adjusted to be horizontal?
   ![image](https://user-images.githubusercontent.com/65716967/188313434-6ec31220-c88b-47d7-bb8f-eda95e74eb55.png)
   
   
   ### What does the proposed API look like?
   
   option = {
     title: {
       text: 'Basic Graph'
     },
     tooltip: {},
     animationDurationUpdate: 1500,
     animationEasingUpdate: 'quinticInOut',
     series: [
       {
         type: 'graph',
         layout: 'none',
          symbol:'rect',
         symbolSize: [140,100],
         roam: true,
         label: {
           show: true
         },
        
         edgeSymbol: ['circle', 'arrow'],
         edgeSymbolSize: [2, 10],
         edgeLabel: {
           fontSize: 20
         },
         data: [
           {
             name: 'Accept',
             value:791,
             x: 100,
             y: 300,
             symbolSize: [140,50],
            label:{
              formatter:'{b|{b}}\n{c|{c}}',
              rich:{
                b:{
                  fontSize:20
                },
                c:{
                  fontSize:15,
                  align: 'center'
                }
              }
            }
           },
           {
             name: 'Accept complete',
             value:700,
             x: 100,
             y: 400,
             symbolSize: [140,50],
            label:{
              formatter:'{b|{b}}\n{c|{c}}',
              rich:{
                b:{
                  fontSize:20
                },
                c:{
                  fontSize:15,
                  align: 'center'
                }
              }
            }
           },
           {
             name: 'Data collection',
             x: 100,
             y: 900
           },
           {
             name: 'Approve',
             x: 100,
             y: 1200
           },
       
         ],
         links: [
           {
             source: 'accept',
             target: 'Accept complete',
             symbolSize: [2, 10],
             value:500,
             label: {
               show: true,
               formatter:'{c}'
             },
              lineStyle:{
                type:'dashed',
                curveness: 5
               }
           }, {
             source: 'Accept complete',
             target: 'data collection',
             symbolSize: [2, 10],
             value:500,
             label: {
               show: true,
               formatter:'{c}'
             },
             
           },{
             source: 'Accept complete',
             target: 'approve',
             symbolSize: [2, 10],
             value:700,
             label: {
               show: true,
               formatter:'{c}'
             },
              
           },{
             source: 'data collection',
             target: 'approve',
             symbolSize: [2, 10],
             value:200,
             label: {
               show: true,
               formatter:'{b|{c}}',
                rich:{
                b:{
                  fontSize:200,
                },
                c:{
                  fontSize:15,
                  align: 'center'
                }
              }
             },
            
           }
         ],
         
         lineStyle: {
           opacity: 1,
           width: 5,
           curveness: 0.4
         }
       }
     ]
   };
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #17612: [Feature]

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #17612:
URL: https://github.com/apache/echarts/issues/17612#issuecomment-1236328187

   I'm sorry to close this issue for it lacks the necessary title. Please provide **a _descriptive_ and as _concise_ as possible title to describe your problems or requests** and then the maintainers or I will reopen this issue.
   
   Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see.
   
   A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it.
   
   Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org