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

Time Scale Time To Coordinate Returns Null For valid time #1716

Open
Skiv1989 opened this issue Oct 26, 2024 · 0 comments
Open

Time Scale Time To Coordinate Returns Null For valid time #1716

Skiv1989 opened this issue Oct 26, 2024 · 0 comments

Comments

@Skiv1989
Copy link

Lightweight Charts™ Version: 4.2.1

I have 2 candle stick charts, first one with 5m candles second one with 15m candles. On click I place a horizontal ray on one of them and then via observable subscription trying to draw the ray on second chart.

The ray on the second chart draws not always, most of the time timeToCoordinate (horizontal-ray.ts file line: 17) method returns null means that time is not found on time scale but it's not true. If I have two charts with same time frame everything works fine, if I adjust time to start of 15 mins or 5 mins it's also works fine

I have reproduced the behavior in this angular project:
https://github.com/Skiv1989/lightweight-charts-demo

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

1 participant