* UIBarChartOption: 重构对象
* UIPieChartOption: 重构对象
This commit is contained in:
parent
ec6795b3a8
commit
fcd3f86f49
@ -17,6 +17,7 @@
|
|||||||
* 创建日期: 2020-06-06
|
* 创建日期: 2020-06-06
|
||||||
*
|
*
|
||||||
* 2020-06-06: V2.2.5 增加文件说明
|
* 2020-06-06: V2.2.5 增加文件说明
|
||||||
|
* 2022-11-25: V3.2.2 重构对象
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
@ -151,11 +152,11 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
public UISeriesType Type => UISeriesType.Bar;
|
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;
|
private int _decimalPlaces = 0;
|
||||||
public int DecimalPlaces
|
public int DecimalPlaces
|
||||||
@ -203,8 +204,7 @@ namespace Sunny.UI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
Data.Clear();
|
Clear();
|
||||||
Colors.Clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Update(int index, double value)
|
public void Update(int index, double value)
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
* 创建日期: 2020-06-06
|
* 创建日期: 2020-06-06
|
||||||
*
|
*
|
||||||
* 2020-06-06: V2.2.5 增加文件说明
|
* 2020-06-06: V2.2.5 增加文件说明
|
||||||
|
* 2022-11-25: V3.2.2 重构对象
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
@ -140,7 +141,7 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
public UICenter Center { get; set; } = new UICenter(50, 50);
|
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();
|
public UIPieSeriesLabel Label = new UIPieSeriesLabel();
|
||||||
|
|
||||||
@ -207,7 +208,7 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
public UICenter Center { get; set; } = new UICenter(50, 50);
|
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();
|
public UIPieSeriesLabel Label = new UIPieSeriesLabel();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user