Skip to content

Commit 1fc7cbb

Browse files
authored
Fix version color overflow. (#299)
1 parent b1cf566 commit 1fc7cbb

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

public/views/chart-js.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,19 @@
1717
Chart.defaults.global.defaultFontColor = '#fff';
1818
// charts data
1919
// pow big
20-
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']
20+
var blockVersionGraphColors = [
21+
'','','','','','','','','',
22+
'23,12,220', // 9
23+
'244,100,1', // 10
24+
'75,192,192', // 11
25+
'41,113,255', // 12
26+
'123,22,255', // 13
27+
'22,255,122', // 14
28+
'28,97,21', // 15
29+
'100,175,183', // 16
30+
'139,177,22', // 17
31+
'112,29,239']; // 18
32+
2133
var powBigChartData = {
2234
type: 'line',
2335
labels: {{.BlockVersionsHeights}},
@@ -88,7 +100,19 @@
88100
};
89101

90102
// pos big
91-
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']
103+
var voteVersionGraphColors = [
104+
'','','','','','','','','',
105+
'111,27,255', // 9
106+
'91,192,222', // 10
107+
'74,172,255', // 11
108+
'63,102,135', // 12
109+
'51,122,183', // 13
110+
'22,255,122', // 14
111+
'0,96,255', // 15
112+
'0,62,164', // 16
113+
'139,177,22', // 17
114+
'112,29,239']; // 18
115+
92116
var posBigChartData = {
93117
labels: {{.StakeVersionIntervalLabels}},
94118
datasets: [

0 commit comments

Comments
 (0)