project-nv / night-vision

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

Volume in second Pane -> Cursor-Data not working if "overlay": "Volume" #108

Open Patricks15 opened 9 months ago

Patricks15 commented 9 months ago

Describe the bug

Hey there, I think your library is great and I would like to support you by pointing out strange behavior. In my use case, I have displayed the volume in a second pane. I noticed a strange behavior at the bar, which displays the current stock data for the cursor. This is not working anymore, if a set the "overlay": "Volume" for the second pane.

See below before and after:

image

After: It is not working anymore:

image

Also the adjustment for the scale for the second pane is not working correctly anymore. Try it in the provided Sandbox. Change the "overlay": "Volume" to "overlay": "Spline" -> Than all is working in the correct way !!

Hope you can help me out. Best regards, Patrick

Reproduction

https://codesandbox.io/p/sandbox/night-vision-volume-pane-j4mxkl

Steps to reproduce

No response

Javascript Framework

no-framework (vanilla-js)

Logs

No response

Validations

Patricks15 commented 9 months ago

I found out an additional information to the problem. I think rendering the final graph failed, because of:

Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'v[2]')

at: for (Xt(null), ht.length = 0, mt = 0; He.length;) He.pop()();

Patricks15 commented 8 months ago

Hey, any updates on this? I would classify this as a bug. What do you think?