night-vision
night-vision copied to clipboard
Range tool on index based charts
Describe the bug
I reckon this is low prio, but placing it here for future reference, the range tool on index based charts is not working. I assume it needs to be adjusted a little bit since x and y values of the pins are not properly computed for index based charts
Reproduction
https://github.com/project-nv/night-vision/blob/main/src/scripts/tools/RangeTool.navy#L15
Steps to reproduce
- spin up a chart with some dummy data
- add the tool range
- make the chart non index based
- see it's working
- make the chart index based
- see it's not working
Javascript Framework
no-framework (vanilla-js)
Logs
No response
Validations
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a NightVision issue and not a framework-specific issue.
- [X] The provided reproduction is a minimal reproducible example of the bug.