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

对markpoint如何设置一部分显示在上方,一部分显示在下方。 #2333

Closed
chenhaoch opened this issue Jun 1, 2024 · 1 comment

Comments

@chenhaoch
Copy link

问题
我看到在Y轴数据设置markpoint时,只能设置一类显示方式,比如都显示在上方。 对markpoint样式的设置是在markpoint_opts,只能传入一个对象。
我现在的需求是一部分markpoint显示在上方,一部分markpoint显示在下方。

具体场景是,我要在K线上显示买卖点,买点提示显示在K线下方,卖点提示显示在K线下方。不知道这种该如何设置

运行环境(系统环境及 pyecharts 版本)

代码及截图

@chenhaoch
Copy link
Author

chenhaoch commented Jun 1, 2024

好吧,突然想到一个思路,果然提问能激发灵感。
我增加了两根Y轴,数据是都是None,然后分别设置买点和卖点markpoint,针对这两个Y轴数据设置不同的markpoint样式。。。搞定了

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

No branches or pull requests

2 participants