-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (56 loc) · 1.66 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<script src='https://cdn.plot.ly/plotly-2.0.0.min.js'></script>
<script type="text/javascript" src="totalSolvedLCsByQsSolved.js"></script>
<title>leetcode contest boxplot</title>
</head>
<body>
<div id='myDiv'><!-- Plotly chart will be drawn inside this DIV --></div>
<script charset="utf-8">
let zero = data["0"]
let one = data["1"]
let two = data["2"]
let three = data["3"]
let four = data["4"]
var trace0 = {
y: zero,
type: 'box',
name: '0'
};
var trace1 = {
y: one,
type: 'box',
name: '1'
};
var trace2 = {
y: two,
type: 'box',
name: '2'
};
var trace3 = {
y: three,
type: 'box',
name: '3'
};
var trace4 = {
y: four,
type: 'box',
name: '4'
};
var data = [trace0, trace1, trace2, trace3, trace4];
var layout = {
title: 'How many questions have you studied if you solved X of 4 contest questions?',
yaxis: {
title: 'Problems Studied',
},
xaxis: {
title: 'Questions Solved',
},
}
Plotly.newPlot('myDiv', data, layout);
</script>
</body>
</html>