fix(metrics): correct chart padding order — right=80 not top=80

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-29 11:38:45 +03:00
parent 3fda18f708
commit 4db89e9773

View File

@@ -653,7 +653,7 @@ func renderChartSVG(title string, datasets [][]float64, names []string, labels [
opt.Legend = gocharts.LegendOption{SeriesNames: names}
opt.Symbol = gocharts.SymbolNone
// Right padding: reserve space for the MarkLine label (library recommendation).
opt.Padding = gocharts.NewBox(20, 80, 20, 20)
opt.Padding = gocharts.NewBox(20, 20, 80, 20)
if yMin != nil || yMax != nil {
opt.YAxis = []gocharts.YAxisOption{{
Min: yMin,