Hello everyone,
I'm trying to keep a candlestick chart updated in PyQtGraph, and everything is going well. However, when I update the candlestick, it exhibits a bug where the last candlestick retains parts that should be cleared or doesn't draw the rectangle completely. Interestingly, if I hover my mouse over it, the candlestick redraws correctly, or if I zoom in or out, it also fixes the issue.
I'm wondering if anyone has any suggestions on how to address this? I thought about triggering a range change every time I update the chart, but it doesn't feel like the right approach. Additionally, if I change the focus or switch to another window and come back, the issue is also resolved.
I would appreciate any insights or tips on how to resolve this bug. Thank you in advance!
I added a workaround of removing and reapplying focus to the widget, and it resolved the issue. However, I'm not happy with this solution as it feels like a hack.