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

When the y-axis is used in percentage mode, different series cannot maintain the ratio #1754

Open
zgr126 opened this issue Dec 11, 2024 · 2 comments

Comments

@zgr126
Copy link

zgr126 commented Dec 11, 2024

For example, this ma line jumps up and down when in percentage mode.
But the price mode is fine, what should I do?
GIF 2024-12-11 19-06-04

@illetid
Copy link
Contributor

illetid commented Dec 11, 2024

Hi, do you have the same amount of data points in both series? could you please share the Codesanbox/Stackblitz with reproduction?

@zgr126
Copy link
Author

zgr126 commented Dec 11, 2024

Hi, do you have the same amount of data points in both series? could you please share the Codesanbox/Stackblitz with reproduction?

jsfiddle: https://jsfiddle.net/z4o19h6q/

Hi, this issue has nothing to do with the amount of data, any official example using percentage mode will also have this issue.
The problem should be caused by the fact that the percentage mode uses the first value as 0% of the currently seen data, but the technical indicator line must be different from the first value of the candlestick chart, so it will jump up and down when the seen range changes.
But what can I do to make the technical indicator not jump, like in the tradingview super chart, I can't find a configuration item for that!

@zgr126 zgr126 closed this as completed Dec 11, 2024
@zgr126 zgr126 reopened this Dec 11, 2024
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