-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstronglifts.html
91 lines (87 loc) · 5.57 KB
/
stronglifts.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
You are free to copy and use this sample in accordance with the terms of the
Apache license (http://www.apache.org/licenses/LICENSE-2.0.html)
-->
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>
Daniel Lidström @ SL 5x5
</title>
<style type="text/css">
</style>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1', {packages: ['corechart']});
</script>
<script type="text/javascript">
function drawVisualization() {
// Create and populate the data table.
var data = new google.visualization.DataTable();
data.addColumn('date', 'x');
data.addColumn('number', 'Daniel');
data.addColumn('number', 'Knäböj');
data.addColumn('number', 'Bänk');
data.addColumn('number', 'Rodd');
data.addColumn('number', 'Press');
data.addColumn('number', 'Marklyft');
// month is 0-based
data.addRow([new Date(2011, 08, 26), 82.4, 20.0, 20.0, 30.0, 20.0, 30]);
data.addRow([new Date(2011, 08, 28), 82.4, 22.5, 20.0, 30.0, 20.0, 30]);
data.addRow([new Date(2011, 08, 30), 82.4, 25.0, 22.5, 32.5, 20.0, 30]);
data.addRow([new Date(2011, 09, 03), 82.4, 27.5, 22.5, 32.5, 22.5, 45]);
data.addRow([new Date(2011, 09, 04), 82.4, 30.0, 25.0, 35.0, 22.5, 45]);
data.addRow([new Date(2011, 09, 05), 82.4, 32.5, 25.0, 35.0, 25.0, 50]);
data.addRow([new Date(2011, 09, 10), 82.4, 35.0, 27.5, 37.5, 25.0, 50]);
data.addRow([new Date(2011, 09, 12), 84.7, 37.5, 27.5, 37.5, 27.5, 55]);
data.addRow([new Date(2011, 09, 14), 84.7, 40.0, 30.0, 40.0, 27.5, 55]);
data.addRow([new Date(2011, 10, 04), 84.7, 35.0, 30.0, 40.0, 25.0, 50]);
data.addRow([new Date(2011, 10, 07), 84.0, 37.5, 32.5, 45.0, 25.0, 50]);
data.addRow([new Date(2011, 10, 09), 84.0, 40.0, 32.5, 45.0, 27.5, 55]);
data.addRow([new Date(2011, 10, 22), 83.8, 35.0, 35.0, 30.0, 27.5, 55]);
data.addRow([new Date(2011, 10, 24), 83.8, 37.5, 35.0, 30.0, 30.0, 60]);
data.addRow([new Date(2011, 10, 28), 84.7, 40.0, 37.5, 32.5, 30.0, 60]);
data.addRow([new Date(2011, 10, 30), 86.4, 42.5, 37.5, 32.5, 32.5, 65]);
data.addRow([new Date(2011, 11, 02), 85.4, 45.0, 40.0, 35.0, 32.5, 65]);
data.addRow([new Date(2011, 11, 05), 86.4, 47.5, 40.0, 35.0, 35.0, 70]);
data.addRow([new Date(2011, 11, 07), 86.4, 50.0, 42.5, 37.5, 35.0, 70]);
data.addRow([new Date(2011, 11, 09), 86.6, 52.5, 42.5, 37.5, 37.5, 75]);
data.addRow([new Date(2011, 11, 11), 85.8, 55.0, 45.0, 37.5, 40.0, 75]);
data.addRow([new Date(2011, 11, 13), 85.8, 57.5, 45.0, 40.0, 40.0, 80]);
data.addRow([new Date(2011, 11, 15), 86.7, 60.0, 47.5, 42.5, 40.0, 80]);
data.addRow([new Date(2011, 11, 17), 86.4, 62.5, 47.5, 42.5, 42.5, 85]);
data.addRow([new Date(2011, 11, 19), 86.2, 65.0, 50.0, 45.0, 42.5, 85]);
data.addRow([new Date(2011, 11, 21), 86.2, 67.5, 50.0, 45.0, 45.0, 90]);
data.addRow([new Date(2011, 11, 23), 86.2, 70.0, 52.5, 47.5, 45.0, 90]);
data.addRow([new Date(2012, 00, 04), 87.6, 70.0, 52.5, 47.5, 40.0, 80]);
data.addRow([new Date(2012, 00, 06), 87.6, 72.5, 55.0, 50.0, 40.0, 80]);
data.addRow([new Date(2012, 00, 09), 87.5, 75.0, 55.0, 50.0, 42.5, 85]);
data.addRow([new Date(2012, 00, 11), 88.1, 77.5, 57.5, 52.5, 42.5, 85]);
data.addRow([new Date(2012, 00, 13), 88.1, 80.0, 57.5, 52.5, 45.0, 90]);
data.addRow([new Date(2012, 00, 16), 88.7, 82.5, 60.0, 55.0, 45.0, 90]);
data.addRow([new Date(2012, 00, 18), 88.7, 85.0, 60.0, 55.0, 47.5, 95]);
data.addRow([new Date(2012, 00, 25), 88.7, 87.5, 62.5, 57.5, 47.5, 95]);
data.addRow([new Date(2012, 00, 27), 88.1, 90.0, 62.5, 57.5, 50.0, 100]);
data.addRow([new Date(2012, 00, 30), 86.7, 92.5, 62.5, 60.0, 50.0, 100]);
data.addRow([new Date(2012, 01, 13), 86.7, 80.0, 62.5, 60.0, 40.0, 85]);
data.addRow([new Date(2012, 01, 17), 86.7, 82.5, 60.0, 60.0, 40.0, 85]);
data.addRow([new Date(2012, 01, 20), 86.7, 85.0, 60.0, 60.0, 42.5, 90]);
data.addRow([new Date(2012, 01, 22), 88.7, 87.5, 62.5, 62.5, 42.5, 90]);
// Create and draw the visualization.
var continuousChart = new google.visualization.LineChart(document.getElementById('continuous-visualization'));
continuousChart.draw(data, { title: "Utveckling över tiden", curveType: "function", width: 700, height: 600 });
var dataView = new google.visualization.DataView(data);
dataView.setColumns([{ calc: function (data, row) { return data.getFormattedValue(row, 0); }, type: 'string' }, 1, 2, 3, 4, 5, 6]);
var chart = new google.visualization.LineChart(document.getElementById('visualization'));
chart.draw(dataView, { title: "Utveckling utan hänsyn till tiden", curveType: "function", width: 700, height: 600 });
}
google.setOnLoadCallback(drawVisualization);
</script>
</head>
<body style="font-family: Arial;border: 0 none;">
<h3>Daniel Lidström @ <a href="http://stronglifts.com/stronglifts-5x5-beginner-strength-training-program/" target="_blank">SL 5x5</a></h3>
<div id="continuous-visualization" style="width: 700px; height: 600px; float: left"></div>
<div id="visualization" style="width: 700px; height: 600px; float: left"></div>
</body>
</html>