project-nv / night-vision

Highly customizable charting library, created for professional traders
https://nightvision.dev
MIT License
242 stars 57 forks source link

Free x-axis cursor #102

Open PavelXWX opened 12 months ago

PavelXWX commented 12 months ago

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

C451 commented 12 months ago

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

https://github.com/project-nv/night-vision/blob/100a357d9cadd9090c49e74651fa22546051631e/src/core/cursor.js#L37

https://github.com/project-nv/night-vision/blob/100a357d9cadd9090c49e74651fa22546051631e/src/core/cursor.js#L97