echarts [Bug] MarkPoint out of the chart window

xxhby3vn  于 5个月前  发布在  Echarts
关注(0)|答案(7)|浏览(106)

Version

5.5.0

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

Steps to Reproduce

Open the minimal reproduction link.

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

zphenhs4

zphenhs41#

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

6mzjoqzu

6mzjoqzu3#

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

pinkon5k

pinkon5k4#

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.

js4nwp54

js4nwp545#

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

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

izj3ouym

izj3ouym6#

That is an interesting hack but it won't work because there is the same behavior on the left side of the chart.

7rtdyuoh

7rtdyuoh7#

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

相关问题