You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im implementing a lightweight charts into a pyqt5 gui, deleting an indicator doesnt seem to be removing it. like it would stop updating and reacting with price but it was still visually there and wouldnt be removed from the chart, ive tried stuff like this and it doesnt work
Delete each line and update the chart
for indicator_name, line in list(self.indicators.items()):
line.delete() # Remove the line from the chart
logging.debug(f"Deleted indicator: {indicator_name}")
# Clear the indicators dictionary
self.indicators.clear()
# Force an update or re-render of the chart to reflect changes
self.chart.repaint() # Trigger a repaint if available
self.chart.update() # Call update() if repaint alone is insufficient
The text was updated successfully, but these errors were encountered:
im implementing a lightweight charts into a pyqt5 gui, deleting an indicator doesnt seem to be removing it. like it would stop updating and reacting with price but it was still visually there and wouldnt be removed from the chart, ive tried stuff like this and it doesnt work
Delete each line and update the chart
The text was updated successfully, but these errors were encountered: