Skip to content

Commit

Permalink
max,min,total
Browse files Browse the repository at this point in the history
  • Loading branch information
encse committed Dec 28, 2024
1 parent b875799 commit da20669
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Lib/SlocChart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ public static void Show(int year, List<(int day, int sloc)> slocs) {
return;
}

Console.WriteLine($" {year } in code lines");
Console.WriteLine("");

var chars = "█▁▂▃▄▅▆▇";
var max = slocs.Select(sloc => sloc.sloc).Max();
var max = slocs.Max(sloc => sloc.sloc);
var min = slocs.Min(sloc => sloc.sloc);
var total = slocs.Sum(sloc => sloc.sloc);

Console.WriteLine($" {year } in code lines total: {total} max: {max} min: {min}");
Console.WriteLine("");


var columns = new List<List<ColoredString>>();

Expand Down

0 comments on commit da20669

Please sign in to comment.