~allanlesage/qa-coverage-dashboard/deployment-necessary-changes

« back to all changes in this revision

Viewing changes to gaps/templates/gaps/product_list.html

  • Committer: Allan LeSage
  • Date: 2014-06-02 21:05:40 UTC
  • Revision ID: allan.lesage@canonical.com-20140602210540-57yd11ik054c9xzc
Compile some deployment-necessary changes for merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
            nv.addGraph(function() {
28
28
                var chart = nv.models.lineChart()
29
29
                    .width(900).height(400);
30
 
    
31
30
                chart.forceY([0, 1]);
32
 
    
33
31
                chart.xAxis
34
32
                    .axisLabel('Date')
35
33
                    .tickFormat(function(d){return d3.time.format('%Y%m%d')(new Date(d * 1000));})
36
 
                    .staggerLabels(true);
37
 
    
38
34
                chart.yAxis
39
35
                    .axisLabel('%')
40
 
                    .tickFormat(d3.format('%'));
41
 
    
42
 
                d3.select('#line-chart svg')
43
 
                    .datum(data)
44
 
                    .transition()
45
 
                    .duration(500)
46
 
                    .call(chart);
47
 
    
 
36
                    .tickFormat(d3.format('%'))
 
37
                d3.select('#line-chart svg').datum(data).transition().duration(500).call(chart);
48
38
                nv.utils.windowResize(chart.update);
49
 
    
50
39
                return chart;
51
40
            }); //d3.json
52
41
        }); //addGraph