Add formatting support for breakdown chart values

Closes #252
This commit is contained in:
Patrik Svensson
2021-02-01 21:53:49 +01:00
committed by Patrik Svensson
parent b64e016e8c
commit 705cf745ea
9 changed files with 58 additions and 91 deletions

View File

@ -22,7 +22,7 @@ namespace Charts
Render("Languages", new BreakdownChart()
.FullSize()
.Width(60)
.ShowAsPercentages()
.TagValueFormat("{0}%")
.AddItem("SCSS", 37, Color.Red)
.AddItem("HTML", 28.3, Color.Blue)
.AddItem("C#", 22.6, Color.Green)