Closed esteban2006 closed 1 month ago
+1 Facing same issue here.
How did you fix this ?
Hi all, FYI how I could fix in my case:
The issue was the number of X data points, that must be the same between the candles/lines of all charts and subcharts, regardless of the Xmin and Xmax after a fit()
.
@digital-stoic could you share your solution ?
@esteban2006 : It's just a data quality thing, not code per se: Ensure that the number of data points on the X axis is the same between your chart and subcharts.
Sync is based on the logical index of a datapoint, not the time. In your case, you need to pad the beggining of your indicator with empty values.
Expected Behavior
as the user would zoom in or out in withing the main chart, the subchart should replicate the action mantaining the same position on the time scale, specially.
Current Behaviour
When zooming in or our or going full screen the subchart loose track of the current time scale and position
https://github.com/user-attachments/assets/6bda6e56-d528-4e6c-9a61-c2a165b03924
Reproducible Example
Environment