lib/code_stats/report/report.js in code_stats2-0.1.6 vs lib/code_stats/report/report.js in code_stats2-0.1.7

- old
+ new

@@ -1,15 +1,15 @@ var Report = {}; -Report.plot = function(selector, projects){ +Report.plot = function(selector, projects){ var sources = [], specs = [], labels = []; for(var i = 0; i < projects.length; i++){ var project = projects[i]; labels.push(project[0]); sources.push(project[1]); specs.push(project[2]); } - + var chart = new Highcharts.Chart({ chart: { renderTo: 'plot', defaultSeriesType: 'column' }, @@ -17,11 +17,11 @@ text: null // 'Stacked column chart' }, xAxis: { categories: labels, labels: { - rotation: -45, + rotation: -45, align: 'right' } }, yAxis: { min: 0, @@ -60,14 +60,14 @@ dataLabels: { enabled: true, color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white' } } - }, + }, series: [{ name: 'Specs', - data: specs - }, { + data: specs + }, { name: 'Sources', data: sources }] }); \ No newline at end of file