diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index 069ab3e9..6a833b1f 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -869,10 +869,10 @@ class ChartView(ViewBox): if not graphics: return 0 - graphic = graphics[0] - xvec = graphic.pixelVectors()[0] - if xvec: - return xvec.x() + for graphic in graphics: + xvec = graphic.pixelVectors()[0] + if xvec: + return xvec.x() else: return 0