From 30708a0396b2d6990db68957a6d7a8923fba2470 Mon Sep 17 00:00:00 2001
From: GONG Jie <gongjie.jie@gmail.com>
Date: Mon, 27 Apr 2026 18:44:32 +0800
Subject: [PATCH 1/2] parse_tick: shift the legend by 2 spaces for the
 "coloured-box"

---
 src/rrd_graph_helper.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c
index 8b9d0e306..cdc1b13ef 100644
--- a/src/rrd_graph_helper.c
+++ b/src/rrd_graph_helper.c
@@ -1765,6 +1765,10 @@ static int parse_tick(
     dprintf("XAXIS : %i\n", gdp->xaxisidx);
     dprintf("YAXIS : %i\n", gdp->yaxisidx);
     dprintf("=================================\n");
+
+    /* shift the legend by 2 spaces for the "coloured-box"*/
+    legend_shift(gdp->legend);
+
     /* and return */
     return 0;
 }

