From 6efaff34b0334bebf0ce29823b9ca11800f170f3 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Fri, 5 Dec 2025 09:22:08 +0000 Subject: [PATCH] Fix version color overflow. --- public/views/chart-js.html | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/public/views/chart-js.html b/public/views/chart-js.html index 81e1831e..17514630 100644 --- a/public/views/chart-js.html +++ b/public/views/chart-js.html @@ -17,7 +17,19 @@ Chart.defaults.global.defaultFontColor = '#fff'; // charts data // pow big - var blockVersionGraphColors = ['23,12,220','244,100,1','75,192,192','41,113,255','123,22,255','22,255,122', '28,97,21', '100,175,183', '139,177,22', '112,29,239'] + var blockVersionGraphColors = [ + '','','','','','','','','', + '23,12,220', // 9 + '244,100,1', // 10 + '75,192,192', // 11 + '41,113,255', // 12 + '123,22,255', // 13 + '22,255,122', // 14 + '28,97,21', // 15 + '100,175,183', // 16 + '139,177,22', // 17 + '112,29,239']; // 18 + var powBigChartData = { type: 'line', labels: {{.BlockVersionsHeights}}, @@ -88,7 +100,19 @@ }; // pos big -var voteVersionGraphColors = ['111,27,255','91,192,222','74,172,255','63,102,135','51,122,183','22,255,122', '0,96,255', '0,62,164', '139,177,22', '112,29,239'] + var voteVersionGraphColors = [ + '','','','','','','','','', + '111,27,255', // 9 + '91,192,222', // 10 + '74,172,255', // 11 + '63,102,135', // 12 + '51,122,183', // 13 + '22,255,122', // 14 + '0,96,255', // 15 + '0,62,164', // 16 + '139,177,22', // 17 + '112,29,239']; // 18 + var posBigChartData = { labels: {{.StakeVersionIntervalLabels}}, datasets: [