Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用graph图时,两个节点之间的多条连线可以设置偏移量吗 #14134

Closed
chj-damon opened this issue Jan 27, 2021 · 5 comments
Closed
Labels
doc Document or Website related issues. topic: graph waiting-for: community

Comments

@chj-damon
Copy link

Version

5.0.1

Reproduction link

https://echarts.apache.org/examples/zh/editor.html?c=graph-simple

Steps to reproduce

节点1和节点2之间有两条连线,但是现在这两条连线重叠在一起了

What is expected?

期望不用设置curveness也可以做到两条线互不干扰

What is actually happening?

两条连线重叠在一起了

@echarts-bot
Copy link

echarts-bot bot commented Jan 27, 2021

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Jan 27, 2021
@Ovilia
Copy link
Contributor

Ovilia commented Jan 29, 2021

You can set autoCurveness to be a number greater than 2. I think the document has some problem because the default value of this options seems to be 0.
This feature is supported in #12590 by @wf123537200

@wf123537200
Copy link
Contributor

You can try remove all the lineStyle.curveness in the options, and set autoCurveness to true.
The documentation is missing some configuration instructions and will be updated later.

@wf123537200 wf123537200 added doc Document or Website related issues. and removed bug pending We are not sure about whether this is a bug/new feature. doc Document or Website related issues. labels Jan 30, 2021
@Ovilia
Copy link
Contributor

Ovilia commented Feb 1, 2021

Doc fixed in apache/echarts-doc#159

@Ovilia Ovilia closed this as completed Feb 1, 2021
@Ovilia Ovilia added the doc Document or Website related issues. label Feb 1, 2021
@chj-damon
Copy link
Author

chj-damon commented Feb 1, 2021

can I make it straight? My requirement is I want to use straight lines instead of curveness lines, and I want straight lines that won't cover each other.

image

It should look like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Document or Website related issues. topic: graph waiting-for: community
Projects
None yet
Development

No branches or pull requests

3 participants