Closed 0xTechnician closed 1 year ago
Thanks, need to look into. Please, provide a codesandbox.
Thanks, need to look into. Please, provide a codesandbox.
https://codesandbox.io/s/playing-around-7-forked-t4dy5v?file=/main.js
Here is a replication, you can play with timeframe / symbols to reproduce the bug described. It may be related to a lack of understanding of the library from me, I had exactly the same issue using TradingVueJs.
Thanks again.
Oh, this is classics :) Your data timestamps should be sorted. You also have a lot of duplicate ones. This loop:
for (var i = view.i1, n = view.i2; i <= n; i++) {
//...
}
works with indices, which of course causes the mess. Need to add the requirement to the docs.
Oh, this is classics :) Your data timestamps should be sorted. You also have a lot of duplicate ones. This loop:
for (var i = view.i1, n = view.i2; i <= n; i++) { //... }
works with indices, which of course causes the mess. Need to add the requirement to the docs.
Oh, thanks a lot , it works way better now! I don't think there is any duplicate? If ever there was duplicates , why would it be a problem?
That's what I noticed. No, it's just a drag on the performance.
Describe the bug
First of all, thanks a lot for your work and this amazing library.
Issue: I am using the NightVision charting library. While I have been successful in plotting the candles and my custom overlay on top of the candles in my pane, I am facing an issue where some of my overlays disappear based on the visible range of candles.
Description: The data of the overlay "Custom" plotted on the chart is fetched from an API upon the load of the chart. However, the overlay "Custom" seems to be inconsistent in its behavior as it disappears based on the visible range of candles.
Reproduction:
Code Snippets:
Custom.navy
Typical overlayData is a list of items like this :
Example : On load , before changing visible range
After sliding a little bit the data to the left
Reproduction
none
Steps to reproduce
No response
Javascript Framework
svelte
Logs
No response
Validations