Skip to content

Commit 0426ea3

Browse files
committed
Graph updates.
1 parent 2c071a7 commit 0426ea3

5 files changed

Lines changed: 283 additions & 92 deletions

File tree

html/map_single_google.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@
115115
return (item / 1000.0) - (split_times[index-1] / 1000.0);
116116
});
117117

118-
if (new_splits.length > 0)
118+
if (new_splits.length > 0) {
119119
draw_bar_chart(new_splits, "Split Times (seconds)", "LightSteelBlue");
120+
}
120121
}
121122

122123
/// @function add_current_location_marker

html/map_single_osm.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@
117117
return (item / 1000.0) - (split_times[index-1] / 1000.0);
118118
});
119119

120-
if (new_splits.length > 0)
120+
if (new_splits.length > 0) {
121121
draw_bar_chart(new_splits, "Split Times (seconds)", "LightSteelBlue");
122+
}
122123
}
123124

124125
/// @function append_to_track

html/zwift.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@
100100
return (item / 1000.0) - (split_times[index-1] / 1000.0);
101101
});
102102

103-
if (new_splits.length > 0)
103+
if (new_splits.length > 0) {
104104
draw_bar_chart(new_splits, "Split Times (seconds)", "LightSteelBlue");
105+
}
105106
}
106107

107108
/// @function lat_lon_to_watopia_xy

js/all_activities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function common_process_sensordata(root_url, activity_id, sensordata, is_foot_ba
193193
draw_sensor_graph(root_url, activity_id, new_data, key, "Watts", get_graph_color(key), deletable);
194194
}
195195
else if (key == "Temperature") {
196-
draw_sensor_graph(root_url, activity_id, new_data, key, "Temperature", get_graph_color(key), deletable);
196+
draw_sensor_graph(root_url, activity_id, new_data, key, "C", get_graph_color(key), deletable);
197197
}
198198
else if (key == "Threat Count") {
199199
draw_sensor_graph(root_url, activity_id, new_data, key, "Threat Count", get_graph_color(key), deletable);

0 commit comments

Comments
 (0)