night-vision icon indicating copy to clipboard operation
night-vision copied to clipboard

Range tool on index based charts

Open mariusvigariu opened this issue 1 year ago • 0 comments

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

  1. spin up a chart with some dummy data
  2. add the tool range
  3. make the chart non index based
  4. see it's working
  5. make the chart index based
  6. 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.

mariusvigariu avatar Oct 28 '23 02:10 mariusvigariu