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] MarkPoint out of the chart window #19699

Open
michaelmoopenn opened this issue Mar 9, 2024 · 7 comments
Open

[Bug] MarkPoint out of the chart window #19699

michaelmoopenn opened this issue Mar 9, 2024 · 7 comments
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@michaelmoopenn
Copy link

michaelmoopenn commented Mar 9, 2024

Version

5.5.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=candlestick-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurACYCGYFRA2gOQBMADAIwDsAtK854wCz0ANLCZsuPPgFZholh269GANlliFkxuzXyJS7QF0SAXyEkSATxz4iSUyTwBTAE4RHhWLRLpUpUmAsQRyJ6AGMKaDIAG3dIUIBrYW9SSmo6ZL9aFhEAZn4RHlyADgMzP0z-ZlypXKrYKWZSjNJaHNZi3JyRfn4m8pacooKa-u7GPv7PQeGREf5x5qM_YxIjYwBuIA

Steps to Reproduce

Open the minimal reproduction link.
Screenshot 2024-03-09 at 5 16 44 PM

Current Behavior

The markpoint is still visible when it is out of the chart window.

Expected Behavior

The markpoint should not display when it is out of the chart window as the candle on the same x axis value.

Environment

- OS: MacOS Sonoma 14.2.1
- Browser: Chromium 122.0.6261.69
- 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 Mar 9, 2024
@helgasoft
Copy link

minimal repro has no markPoint.
markPoint works as intended - Demo.
📌 please close issue if problem solved.

@helgasoft
Copy link

use yAxis instead of y in markPoint.data and it will be fine
📌 please close issue if problem solved.

@michaelmoopenn
Copy link
Author

By using yAxis, the markpoint won't have a fixed y-axis position. When using with scale: true the markpoint move with the y axis value. My requirement is to have the markpoint at a fixed y-axis position.

@helgasoft
Copy link

My requirement is to have the markpoint at a fixed y-axis position.

I couldn't have guessed that... Try grid: {right:0},

@michaelmoopenn
Copy link
Author

That is an interesting hack but it won't work because there is the same behavior on the left side of the chart.
Screenshot 2024-03-11 at 11 23 29 PM

@helgasoft
Copy link

yes, no clean workarounds. It is a bug and it has to be fixed.

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
Development

No branches or pull requests

2 participants