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

Free x-axis cursor #102

Open
4 tasks done
PavelXWX opened this issue Oct 31, 2023 · 1 comment
Open
4 tasks done

Free x-axis cursor #102

PavelXWX opened this issue Oct 31, 2023 · 1 comment

Comments

@PavelXWX
Copy link

Describe the bug

Hi, I've been searching for a long time and still can't figure it out. Please tell me how I can make sure that the cursor line perpendicular to the x-axis does not jump from candle to candle. That is, I have a custom overlay with data between the candles, but I can’t point at them due to the time reference to the candles

Reproduction

no

Steps to reproduce

No response

Javascript Framework

svelte

Logs

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a NightVision issue and not a framework-specific issue.
  • The provided reproduction is a minimal reproducible example of the bug.
@PavelXWX PavelXWX reopened this Oct 31, 2023
@C451
Copy link
Contributor

C451 commented Nov 1, 2023

It's not supposed to be free. But, hey you can try to hack the code:

this.x = Math.round((this.x - start) / step) * step + start

quantizeTime(hub, layout, props) {

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