Allow formatting breakdown charts with lambda expr

Relates to #252
This commit is contained in:
Patrik Svensson
2021-02-13 17:02:05 +01:00
committed by Patrik Svensson
parent 28e9c14de4
commit 102e2dc38d
6 changed files with 60 additions and 13 deletions

View File

@ -19,10 +19,10 @@ namespace Charts
// Render a breakdown chart
AnsiConsole.WriteLine();
Render("Languages", new BreakdownChart()
Render("Languages used", new BreakdownChart()
.FullSize()
.Width(60)
.TagValueFormat("{0}%")
.ShowPercentage()
.AddItem("SCSS", 37, Color.Red)
.AddItem("HTML", 28.3, Color.Blue)
.AddItem("C#", 22.6, Color.Green)