-
Notifications
You must be signed in to change notification settings - Fork 4
/
activityStats2.html
48 lines (44 loc) · 1.76 KB
/
activityStats2.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
<!doctype html>
<html lang="en">
<head>
<title>Strava Stats</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<script src="lib/echarts-5.4.2.min.js"></script>
<select id="sel-date-agg">
<option value="year">Year</option>
<option value="quarter">Quarter</option>
<option value="month">Month</option>
<option value="week">Week</option>
</select>
<select id="sel-type">
<option value="Run">Run</option>
<option value="Ride">Ride</option>
</select>
<select id="sel-measure">
<option value="count">Count</option>
<option value="hours(sum)">Hours (sum)</option>
<option value="hours(avg)">Hours (avg)</option>
<option value="kilometers(sum)">Kilometers (sum)</option>
<option value="kilometers(avg)">Kilometers (avg)</option>
<option value="elevation(sum)">Elevation (sum)</option>
<option value="elevation(avg)">Elevation (avg)</option>
<option value="elevation_m/km(avg)">Elevation m/km(avg)</option>
<option value="speed_km/h(avg)">Speed km/h (avg)</option>
<option value="speed_km/h(max)">Speed km/h (max)</option>
<option value="heartrate(avg)">Heartrate (avg)</option>
<option value="heartrate(max)">Heartrate (max)</option>
</select>
<!-- eCharts chart -->
<div id="div-chart" style="width: 100%;height:600px;"></div>
<div id="div-chart-act-count" style="width: 100%;height:600px;"></div>
<p>Note: Only activities ≥ 10 min are taken into account.</p>
<script>
const session = "SessionIdPlaceholder";
</script>
<script src="./helper.js"></script>
<script src="./activityStats2.js"></script>
</body>
</html>