tvjsx / trading-vue-js

💹 Hackable charting lib for traders. You can draw literally ANYTHING on top of candlestick charts. [Not Maintained]
https://tvjsx.github.io/trading-vue-demo/
MIT License
2.07k stars 628 forks source link

`.goto()` does not synchronize hairline hover with legend #258

Open Jonarod opened 2 years ago

Jonarod commented 2 years ago

Description

When .goto() method is used, the layout correctly jumps to desired position, however, the legend is not refreshed until mouse moves. For example, if I am at position 1536217800000 with close price at $100, then use .goto(1536216700000), the layout will correctly jump to correct position, but legend will stay at $100 price instead of actual candle hovered by the hairline which should be $86.

Screenshot

Here some step by step screenshots:

I start hovering this candle, which displays a CLOSE price of 6411.84.

Before Jump

Then in my code, I use .goto() to jump some candles behind. It works well, however, look at the legend: it hasn't changed accordingly even though the hairline is correctly positioned.

After Jump

Code (MVP)

Just trigger a

this.$refs.tvjs.goto(<some_timestamp_here>)

and see the behaviour on screen.

Data Sample

N/A

Console errors (if any)

No errors

Additional Info

tvjs v1.0 Chrome 96.0

arul67800 commented 2 years ago

No body is maintaining this wonderful project..why cant you pull this out and pull a request