PanelChart's BarChart and PieChart rendered one bar/slice and legend row per PromqlSeries with no bound, so panels with many series wrapped the 8-color palette (repeating colors) and produced unreadable, unbounded legends. Add squashRows(), which sorts by value descending and collapses series beyond COLORS.length - 1 into a single "Other" bucket (sum of the rest), applied to both bar and pie chart data before render. Panels at or below the threshold are unaffected. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XFUNZwCvz3kcod3352ZR2o