diff --git a/codepot/src/codepot/views/code_file.php b/codepot/src/codepot/views/code_file.php index b12581ba..5398c635 100644 --- a/codepot/src/codepot/views/code_file.php +++ b/codepot/src/codepot/views/code_file.php @@ -24,7 +24,7 @@ if (in_array ($fileext, array ('png', 'jpg', 'jpeg', 'gif', 'tif', 'bmp', 'ico'))) { - $img = @imagecreatefromstring($file['content']); + $img = @imagecreatefromstring ($file['content']); if ($img !== FALSE) { @imagedestroy ($img); @@ -104,10 +104,7 @@ - - - - + @@ -555,8 +552,7 @@ var RevGraphApp = (function () return App; })(); - - + var LocGraphApp = (function () { function App (top_container, graph_container, graph_msgdiv, graph_canvas, graph_button, graph_spin, graph_url, graph_title) @@ -583,37 +579,34 @@ var LocGraphApp = (function () this.clearMessage (); - var pd = []; // files, blank, comment, code // files is always 1. - for (var i = 1; i < data.SUM.length ; i++) - { - pd[i - 1] = [ i - 1, data.SUM[i] ]; - } this.plot_dataset = [ - { label: 'LOC', data: pd } - ] - - var ticks = [ - [0, "lang->line('Blank')?>(" + data.SUM[1] + ")"], - [1, "lang->line('Comment')?>(" + data.SUM[2] + "])"], - [2, "lang->line('Code')?>(" + data.SUM[3] + ")"] + { label: "lang->line('Blank')?>", data: data.SUM[1] }, + { label: "lang->line('Comment')?>", data: data.SUM[2] }, + { label: "lang->line('Code')?>", data: data.SUM[3] } ]; - this.plot_options = { + this.plot_options = + { series: { - bars: { show: true } + shadowSize: 0, + pie: { + show: true, + innerRadius: 0.1, + label: { + show: true, + radius: 0.9, + formatter: function labelFormatter(label, series) + { + return "