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:{type:max},标注只会显示在堆积后最大值的柱子上,而不是该系列最大值的上面 #20531

Open
WuEyuan opened this issue Nov 22, 2024 · 1 comment
Labels

Comments

@WuEyuan
Copy link

WuEyuan commented Nov 22, 2024

Version

5.0及以上版本

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsBEAPAgliAzhgFzJrqZgCeIApiZgMYCGYtA5sAE5UYA05dBgAmrZgwDagihgBsABgC0Adnn9pQgBxKAnGoEUZqxdozSAuuQC-BzFTyEGqQxmp0GGAG7MANgFd6WxtyDAJaLghaIlIpQ2dDTGhmAFt6UgxALrlAB1N1BMxRMHEYjQp4vKFvfzTYWPLDeVs69ABWEsNzRvKRQhAfZioANV8AyTaEuSVVXKahZrMZjrGhLmAAdwBJaGFaLFGZ9AalinkjxZmMRmAfTe3d0gBGMeC6sq7KkeL92HvOus1T37jYQ9PqDYbVWrnbSKPTTKHzJpnJoYFYbLY7Pb7H5HdCPBaAlyXa7ou7fJ4Esjnd4QnGwABMFMM9zxiMZ-RB_SGVUx52MpjZQmZCLqSLqKLWNwxn32DNpdIBRwuV0lpJZeSsJVFMjc1QwACNmFw4TICIVGABrDzbABmzD8PjAwtgz1KJQwSVSHkAhdE5QEiMQ8hKvPJecGBuqHL7y_GK1Eq8PlSNYhXnInx0jR8ouvLB8bUhN5bFfNXlLUhuMkgsJIvJmOp5WVjPksa5lz56UzWXFlPIiu3KuGLsyntitON-lPTV-nUeA1Gv2m5gWq20W32x1-5KG80ABWAEGgjtIrfyAY75RPLhn6S3uwFiRSusAAOaAck1ADwKTvVY0sX8MGvQlhWEAA

Steps to Reproduce

详细见下面的例子
https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsBEAPAgliAzhgFzJrqZgCeIApiZgMYCGYtA5sAE5UYA05dBgAmrZgwDagihgBsABgC0Adnn9pQgBxKAnGoEUZqxdozSAuuQC-BzFTyEGqQxmp0GGAG7MANgFd6WxtyDAJaLghaIlIpQ2dDTGhmAFt6UgxALrlAB1N1BMxRMHEYjQp4vKFvfzTYWPLDeVs69ABWEsNzRvKRQhAfZioANV8AyTaEuSVVXKahZrMZjrGhLmAAdwBJaGFaLFGZ9AalinkjxZmMRmAfTe3d0gBGMeC6sq7KkeL92HvOus1T37jYQ9PqDYbVWrnbSKPTTKHzJpnJoYFYbLY7Pb7H5HdCPBaAlyXa7ou7fJ4Esjnd4QnGwABMFMM9zxiMZ-RB_SGVUx52MpjZQmZCLqSLqKLWNwxn32DNpdIBRwuV0lpJZeSsJVFMjc1QwACNmFw4TICIVGABrDzbABmzD8PjAwtgz1KJQwSVSHkAhdE5QEiMQ8hKvPJecGBuqHL7y_GK1Eq8PlSNYhXnInx0jR8ouvLB8bUhN5bFfNXlLUhuMkgsJIvJmOp5WVjPksa5lz56UzWXFlPIiu3KuGLsyntitON-lPTV-nUeA1Gv2m5gWq20W32x1-5KG80ABWAEGgjtIrfyAY75RPLhn6S3uwFiRSusAAOaAck1ADwKTvVY0sX8MGvQlhWEAA

Current Behavior

一个堆积柱图,多个系列堆积,设置其中一个系列的markpoint:{type:max},标注只会显示在堆积后最大值的柱子上,即多个系列叠加后的最大值,而不是某个系列最大值的上面,不堆积则正常

Expected Behavior

希望标志放在哪个系列上,就显示在该系列最大值上,跟其他系列无关

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@WuEyuan WuEyuan added the bug label Nov 22, 2024
@helgasoft
Copy link

bug confirmed. Workaround is to calculate data.coord instead of type for markPoint - Demo.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants