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

[Bug] Step graph and "connectNulls = false" connects where it should not #20191

Open
skubidu1324 opened this issue Jul 23, 2024 · 2 comments · May be fixed by #20258
Open

[Bug] Step graph and "connectNulls = false" connects where it should not #20191

skubidu1324 opened this issue Jul 23, 2024 · 2 comments · May be fixed by #20258
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@skubidu1324
Copy link

skubidu1324 commented Jul 23, 2024

Version

5.5.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=line-step&version=5.5.1

Steps to Reproduce

Use above example and add null values in the middle of the dataset.

Current Behavior

Lines are painted that are not allowed to be painted. I have marked these in red here:

image

Expected Behavior

Marked area should not be there.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Jul 23, 2024
@helgasoft
Copy link

it's all normal, because step option is different for each line. Set all lines to same step and the gaps will look the same.
📌 please close issue if problem solved.

@skubidu1324
Copy link
Author

skubidu1324 commented Aug 1, 2024

No, unfortunately that doesn't solve the problem. It is the case that both the connection from the value to the left of null must have no connection, as well as the connection from the value to the right from null to null. This means that the graph is not displayed correctly in any of the step options.

The interpolated graph does it right. There is no connection to and from null here.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Projects
None yet
2 participants