* UIPieChart:增加一个函数

This commit is contained in:
Sunny 2020-12-24 21:25:21 +08:00
parent 8bdf28366a
commit 01a043ffb9
2 changed files with 5 additions and 0 deletions

Binary file not shown.

View File

@ -159,6 +159,11 @@ namespace Sunny.UI
Data.Add(new UIPieSeriesData(name, value)); Data.Add(new UIPieSeriesData(name, value));
} }
public void AddData(string name, double value, Color color)
{
Data.Add(new UIPieSeriesData(name, value, color));
}
public void Dispose() public void Dispose()
{ {
Data.Clear(); Data.Clear();