* UIBarChartOption: 重构对象

* UIPieChartOption: 重构对象
This commit is contained in:
Sunny 2022-11-25 16:07:41 +08:00
parent ec6795b3a8
commit fcd3f86f49
2 changed files with 8 additions and 7 deletions

View File

@ -17,6 +17,7 @@
* : 2020-06-06
*
* 2020-06-06: V2.2.5
* 2022-11-25: V3.2.2
******************************************************************************/
using System;
@ -151,11 +152,11 @@ namespace Sunny.UI
public UISeriesType Type => UISeriesType.Bar;
public readonly List<string> BarName = new List<string>();
internal readonly List<string> BarName = new List<string>();
public readonly List<double> Data = new List<double>();
internal readonly List<double> Data = new List<double>();
public readonly List<Color> Colors = new List<Color>();
internal readonly List<Color> Colors = new List<Color>();
private int _decimalPlaces = 0;
public int DecimalPlaces
@ -203,8 +204,7 @@ namespace Sunny.UI
/// </summary>
public void Dispose()
{
Data.Clear();
Colors.Clear();
Clear();
}
public void Update(int index, double value)

View File

@ -17,6 +17,7 @@
* : 2020-06-06
*
* 2020-06-06: V2.2.5
* 2022-11-25: V3.2.2
******************************************************************************/
using System;
@ -140,7 +141,7 @@ namespace Sunny.UI
public UICenter Center { get; set; } = new UICenter(50, 50);
public readonly List<UIPieSeriesData> Data = new List<UIPieSeriesData>();
internal readonly List<UIPieSeriesData> Data = new List<UIPieSeriesData>();
public UIPieSeriesLabel Label = new UIPieSeriesLabel();
@ -207,7 +208,7 @@ namespace Sunny.UI
public UICenter Center { get; set; } = new UICenter(50, 50);
public readonly List<UIPieSeriesData> Data = new List<UIPieSeriesData>();
internal readonly List<UIPieSeriesData> Data = new List<UIPieSeriesData>();
public UIPieSeriesLabel Label = new UIPieSeriesLabel();