diff --git a/circuitpython_uplot/bar.py b/circuitpython_uplot/bar.py index 04e8e4b..07d628a 100644 --- a/circuitpython_uplot/bar.py +++ b/circuitpython_uplot/bar.py @@ -113,7 +113,7 @@ def __init__( self._create_bars(xstart, i) if projection: - self._create_projections(xstart, i, len(color_palette)) + self._create_projections(xstart, i, len(self._bars)) plot.show_text( str(y[i]),