wzxii commited on
Commit
0405a8c
1 Parent(s): c76fc2b

Update chart.js

Browse files
Files changed (1) hide show
  1. chart.js +18 -18
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
- '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,17 +187,17 @@ for(let i = 0; i < 4; 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,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 +