Finishing up graphs. Formatting and adding "Runs" lines.

This commit is contained in:
John Geiger
2016-05-29 17:30:49 +02:00
parent 8259097b37
commit 34c9d791f4
4 changed files with 43 additions and 254 deletions

View File

@ -4,7 +4,7 @@ $(function() {
if ($.isController('exercises') && $('.graph-functions').isPresent()) {
var working_times = $('#data').data('working-time');
function get_minutes (time_stamp){
try{
hours = time_stamp.split(":")[0];
@ -67,6 +67,9 @@ $(function() {
// DRAW THE LINE GRAPH ------------------------------------------------------------------------------
function draw_line_graph() {
var width_ratio = .8;
if (width_ratio > 1000){
width_ratio = 1000;
}
var height_ratio = .7; // percent of height
// currently sets as percentage of window width, however, unfortunately