You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "wangchaoHeart (via GitHub)" <gi...@apache.org> on 2023/02/27 10:29:55 UTC

[GitHub] [echarts] wangchaoHeart opened a new issue, #18318: [Bug] 当 type:' tree' 且 edgeShape: 'polyline' 时,不支持具体连接线的配置,但是edgeShape:'curve'却支持。

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

   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANqrrpgCeIWxARGDllvQDRoVYAmA5lgGUAFgENaxAOQhgAGyoyI0LBNgcKsbiLAjiZTuugiAtnVj0cwYGHb6KAYyEQZ3ZtF3l1FQyYYBhR86wAII2nvYBLlhupLbqSLCxnt6m9AAyWCIAZrC-oWEUCkoC1DJ0Hvn2ssA4hBLM3BJqFRTU4hKaGEI8EonqAL69FIN9bAkVSMkM6VmwACL0fQC6iSPIg5Nm_k7csABCeWEO2666g-jxG2kZ2QDi9LCrZ8iwl9PZABILg8thS7ZLTXQMhEACMsDJiOUKNIMBBIDAGHheEJrP9OH8-kA&_source=echarts-doc-preview
   
   ### Steps to Reproduce
   
   我想要实现在 edgeShape:'polyline'时,tree的lineStyle支持每一条连接线的配置。
   
   1. edgeShape:'curve'时,是支持lineStyle的配置的,链接如下:https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANqrrpgCeIWxARGDllvQDRoVYAmA5lgGUAFgENaxAOQBjAK44AblgmwOFWNxFgRxMpzXQRAWzqx6OYMDDs9FKUIgAbbs2g7yaigeMMAwvaewAILWHrb-zliupDZqSLAxHl4m9AAyWCIAZrA-IaEUDhDQgtQOdO55tsAOwDiEEszcEqoVFNTiEhoYQjwSCWoAvn0UQ_1s8RVISQxpmbAAIvT9ALoJo8hDU6Z-jtywAEK5oXY7LjpD6HGbqelZAOL0sGvnyLBXM1kAEotDK6HLNstmugHCIAEZYBzEcoUEDADAQSAwBh4XhCKwAzj_fpAA&_source=echarts-doc-preview
   2. edgeShape:'polyline'时,不支持lineStyle的配置的,链接如下:https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANqrrpgCeIWxARGDllvQDRoVYAmA5lgGUAFgENaxAOQhgAGyoyI0LBNgcKsbiLAjiZTuugiAtnVj0cwYGHb6KAYyEQZ3ZtF3l1FQyYYBhR86wAII2nvYBLlhupLbqSLCxnt6m9AAyWCIAZrC-oWEUCkoC1DJ0Hvn2ssA4hBLM3BJqFRTU4hKaGEI8EonqAL69FIN9bAkVSMkM6VmwACL0fQC6iSPIg5Nm_k7csABCeWEO2666g-jxG2kZ2QDi9LCrZ8iwl9PZABILg8thS7ZLTXQMhEACMsDJiOUKNIMBBIDAGHheEJrP9OH8-kA&_source=echarts-doc-preview
   
   ### Current Behavior
   
   当前版本中,当 edgeShape:'polyline'时,data中的lineStyle不支持配置。
   
   ### Expected Behavior
   
   当 edgeShape:'polyline'时,data中的lineStyle支持配置,可以完全控制连接线的属性(颜色,类型等)
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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] dxdleikai commented on issue #18318: [Bug] 当 type:' tree' 且 edgeShape: 'polyline' 时,不支持具体连接线属性的配置,但是edgeShape:'curve'却支持。

Posted by "dxdleikai (via GitHub)" <gi...@apache.org>.
dxdleikai commented on issue #18318:
URL: https://github.com/apache/echarts/issues/18318#issuecomment-1491408710

   遇到类似的问题,连接线的直角拐角处想加个radius,找不到相关配置项,ε=(´ο`*)))唉


-- 
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 #18318: [Bug] 当 type:' tree' 且 edgeShape: 'polyline' 时,不支持具体连接线属性的配置,但是edgeShape:'curve'却支持。

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18318:
URL: https://github.com/apache/echarts/issues/18318#issuecomment-1447663388

   我觉得可能是暂时还不支持这样的功能,因为 polyline 的情况下,从父节点出来的线是被两个子节点共用的,如果要改变的话,应该是这一段改变:
   <img width="792" alt="image" src="https://user-images.githubusercontent.com/779050/221773929-e7afc946-79cf-4eda-a087-acf61ccc724c.png">
   
   如果你感兴趣的话,欢迎提 PR,参见 [wiki](https://github.com/apache/echarts/wiki)


-- 
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 #18318: [Bug] 当 type:' tree' 且 edgeShape: 'polyline' 时,不支持具体连接线的配置,但是edgeShape:'curve'却支持。

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #18318:
URL: https://github.com/apache/echarts/issues/18318#issuecomment-1446077328

   @wangchaoHeart 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**
   
   [Bug] When type:'tree' and edgeShape: 'polyline' are not supported, but edgeShape:'curve' does.
   
   **BODY**
   
   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANqrrpgCeIWxARGDllvQDRoVYAmA5lgGUAFgENaxAOQhgAGyoyI0LBNgcKsbiLAjiZTuugiAtnVj0cwYGHb6KAYyEQZ3ZtF3l1FQyYYBhR86wAII2nvYBLlhupLbqSLCxnt6m9AAyWCIAZrC-oWEUCkoC1DJ0Hvn2ssA4hBLM3BJqFRTU4hKaGEI8EonqAL69FIN9bAkVSMkM6VmwACL0fQC6iSPIg5Nm_k7csABCeWEO2666g-jxG2kZ2QDi9LCrZ8iwl9PZABILg8thS7ZLTXQMhEACMsDJiOUKNIMBBIDAGHheEJrP9OH8-kA&_source=echarts-doc-preview
   
   ### Steps to Reproduce
   
   I want to realize that when edgeShape:'polyline', the lineStyle of the tree supports the configuration of each connecting line.
   
   1. edgeShape:'curve'时,是支持lineStyle的配置的,链接如下:https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANqrrpgCeIWxARGDllvQDRoVYAmA5lgGUAFgENaxAOQBjAK44AblgmwOFWNxFgRxMpzXQRAWzqx6OYMDDs9FKUIgAbbs2g7yaigeMMAwvaewAILWHrb-zliupDZqSLAxHl4m9AAyWCIAZrA-IaEUDhDQgtQOdO55tsAOwDiEEszcEqoVFNTiEhoYQjwSCWoAvn0UQ_1s8RVISQxpmbAAIvT9ALoJo8hDU6Z-jtywAEK5oXY7LjpD6HGbqelZAOL0sGvnyLBXM1kAEotDK6HLNstmugHCIAEZYBzEcoUEDADAQSAwBh4XhCKwAzj_fpAA&_source=echarts-doc -preview
   2. edgeShape:'polyline'时,不支持lineStyle的配置的,链接如下:https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANqrrpgCeIWxARGDllvQDRoVYAmA5lgGUAFgENaxAOQhgAGyoyI0LBNgcKsbiLAjiZTuugiAtnVj0cwYGHb6KAYyEQZ3ZtF3l1FQyYYBhR86wAII2nvYBLlhupLbqSLCxnt6m9AAyWCIAZrC-oWEUCkoC1DJ0Hvn2ssA4hBLM3BJqFRTU4hKaGEI8EonqAL69FIN9bAkVSMkM6VmwACL0fQC6iSPIg5Nm_k7csABCeWEO2666g-jxG2kZ2QDi9LCrZ8iwl9PZABILg8thS7ZLTXQMhEACMsDJiOUKNIMBBIDAGHheEJrP9OH8-kA&_source=echarts-doc -preview
   
   ### Current Behavior
   
   In the current version, when edgeShape:'polyline', the lineStyle in data does not support configuration.
   
   ### Expected Behavior
   
   When edgeShape:'polyline', the lineStyle in data supports configuration, which can fully control the properties of the connecting line (color, type, etc.)
   
   ### Environment
   
   ```markdown
   - OS:
   -Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_
   </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] helgasoft commented on issue #18318: [Bug] 当 type:' tree' 且 edgeShape: 'polyline' 时,不支持具体连接线属性的配置,但是edgeShape:'curve'却支持。

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18318:
URL: https://github.com/apache/echarts/issues/18318#issuecomment-1483749658

   There is a difference in [data.lineStyle](https://echarts.apache.org/en/option.html#series-tree.data.lineStyle) implementation:
   - for edgeShape **polyline** - it describes the **downward** connection lines, to children (see "flare")
   - for edgeShape **curve** - it describes the **upward** connection lines, to parent (see "Child A")
   
   [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-sim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J0x1Cpto6uiASgCBf16iouMeMZFXeUhpFkeQqSyI6gW1TEGAmGk-A6nF8BAMgIDou6AYe-VNq-t5xCU3djNMdrLBANJ602AHUuiZR_qyFBzpBsGIGqDrFDtIV6DhrbsQuq6IE3XqCeib6tQMAHdSBknwYAcQ635WcJwHOt5iAAAkKYqKmSllynXxcqSZI8TyFM65TYA6o5C0YR0nSAA)
   That makes possible to define a single _curve_ to one child (of multiple), but **cannot** define a single _line_ to it.
   As in example - possible to do "curve"  to "Child A", but cannot do "flare" to "data" alone.
   ![image](https://user-images.githubusercontent.com/13038071/227702528-4cafbbe9-4ffd-4331-80de-9cbdf1a26443.png)
   


-- 
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] wangchaoHeart commented on issue #18318: [Bug] 当 type:' tree' 且 edgeShape: 'polyline' 时,不支持具体连接线属性的配置,但是edgeShape:'curve'却支持。

Posted by "wangchaoHeart (via GitHub)" <gi...@apache.org>.
wangchaoHeart commented on issue #18318:
URL: https://github.com/apache/echarts/issues/18318#issuecomment-1447418972

   #12869     


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