Update chart.js
Browse files
chart.js
CHANGED
|
@@ -139,12 +139,12 @@ var dataset = [
|
|
| 139 |
},
|
| 140 |
]
|
| 141 |
let ymins = new Array(0.27, 0.16, 0.21, 0.14)
|
| 142 |
-
let titleText = [
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
]
|
| 148 |
let options = new Array(4)
|
| 149 |
for(let i = 0; i < 4; i++){
|
| 150 |
options[i] = {
|
|
@@ -187,17 +187,17 @@ for(let i = 0; i < 4; i++){
|
|
| 187 |
color: '#5876fa'
|
| 188 |
},
|
| 189 |
},
|
| 190 |
-
title: {
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
},
|
| 201 |
tooltip: {
|
| 202 |
trigger: 'item',
|
| 203 |
},
|
|
@@ -252,7 +252,7 @@ for(let i = 0; i < 4; i++){
|
|
| 252 |
},
|
| 253 |
},
|
| 254 |
};
|
| 255 |
-
options[i].title.text = titleText[i]
|
| 256 |
options[i].tooltip.formatter = (
|
| 257 |
i < 2 ? function(params) {
|
| 258 |
return params.marker +
|
|
|
|
| 139 |
},
|
| 140 |
]
|
| 141 |
let ymins = new Array(0.27, 0.16, 0.21, 0.14)
|
| 142 |
+
// let titleText = [
|
| 143 |
+
// 'Pass@1 (temp = 0)',
|
| 144 |
+
// 'Pass@1 (temp = 0.8)',
|
| 145 |
+
// 'Pass@1 (temp = 0)',
|
| 146 |
+
// 'Pass@1 (temp = 0.8)'
|
| 147 |
+
// ]
|
| 148 |
let options = new Array(4)
|
| 149 |
for(let i = 0; i < 4; i++){
|
| 150 |
options[i] = {
|
|
|
|
| 187 |
color: '#5876fa'
|
| 188 |
},
|
| 189 |
},
|
| 190 |
+
// title: {
|
| 191 |
+
// show: true,
|
| 192 |
+
// text: '',
|
| 193 |
+
// left: 'center',
|
| 194 |
+
// textStyle: {
|
| 195 |
+
// fontFamily: "Arial",
|
| 196 |
+
// fontSize: 20,
|
| 197 |
+
// fontWeight: 'normal'
|
| 198 |
+
// },
|
| 199 |
+
// top: 25
|
| 200 |
+
// },
|
| 201 |
tooltip: {
|
| 202 |
trigger: 'item',
|
| 203 |
},
|
|
|
|
| 252 |
},
|
| 253 |
},
|
| 254 |
};
|
| 255 |
+
// options[i].title.text = titleText[i]
|
| 256 |
options[i].tooltip.formatter = (
|
| 257 |
i < 2 ? function(params) {
|
| 258 |
return params.marker +
|