Switch to unified view

a/bitergiametrics/nf/metrics/swscopio.js b/bitergiametrics/nf/metrics/swscopio.js
...
...
32
        // Create the TimeSeries
32
        // Create the TimeSeries
33
        new envision.templates.TimeSeries(options);
33
        new envision.templates.TimeSeries(options);
34
    });
34
    });
35
}
35
}
36
36
37
// Display timeseries for commits and committers using
37
// Display timeseries for tickets live, people, open/close using
38
// the finance envision template
38
// the finance envision template
39
function displayEvoCommits(id, datafile) {
39
function displayEvoTicketsSWScopio(id, datafile) {
40
40
41
    var container = document.getElementById(id);
41
    var container = document.getElementById(id);
42
42
43
    $.getJSON(datafile,
43
    $.getJSON(datafile,
44
            function(history) {
44
            function(history) {
45
45
46
                var V = envision, firstMonth = history.id[0], commits = [
46
                var V = envision, firstMonth = history.id[0], live = [
47
                        history.id, history.commits ], committers = [
47
                        history.id, history.live ], people = [
48
                        history.id, history.committers ], ratio = [ history.id,
48
                        history.id, history.people ], open = [ history.id,
49
                      history.open ], close = [ history.id, history.close ],
49
                        history.ratio ], dates = history.date, options, vis;
50
                        dates = history.date, options, vis;
50
51
51
                options = {
52
                options = {
52
                    container : container,
53
                    container : container,
53
                    data : {
54
                    data : {
54
                      price : commits,
55
                      price : [ open, close ],
55
                        volume : committers,
56
                        volume : people,
56
                        summary : commits
57
                        summary : live
57
                    },
58
                    },
58
                    trackFormatter : function(o) {
59
                    trackFormatter : function(o) {
59
60
60
                        var
61
                        var
61
                        // index = o.index,
62
                        // index = o.index,
62
                        data = o.series.data, index = data[o.index][0]
63
                        data = o.series.data, index = data[o.index][0]
63
                                - firstMonth, value;
64
                                - firstMonth, value;
64
65
                      
65
                      value = dates[index] + ": " + commits[1][index]
66
                      value =  dates[index] + " ("; 
66
                              + " commits, " + committers[1][index]
67
                      value += live[1][index]   + " live, "; 
67
                              + " committers (commits per committer: "
68
                      value += people[1][index] + " people,   ";
68
                              + ratio[1][index] + ")";
69
                      value += open[1][index] + " open,   ";
70
                      value += close[1][index] + " close   ";
71
                      value += ")";                       
69
72
70
                        return value;
73
                        return value;
71
                    },
74
                    },
72
                    xTickFormatter : function(index) {
75
                    xTickFormatter : function(index) {
73
                        return Math.floor(index / 12) + '';
76
                        return Math.floor(index / 12) + '';