* UIChartOption: 图表的一些参数设置为只读或者私有设置

This commit is contained in:
Sunny 2023-04-21 13:55:29 +08:00
parent 0a7e7a0f41
commit f9062226f8
3 changed files with 11 additions and 11 deletions

View File

@ -34,7 +34,7 @@ namespace Sunny.UI
/// <summary>
/// X轴
/// </summary>
public UIAxis XAxis { get; set; } = new UIAxis(UIAxisType.Category);
public UIAxis XAxis { get; private set; } = new UIAxis(UIAxisType.Category);
/// <summary>
/// 工具提示
@ -44,17 +44,17 @@ namespace Sunny.UI
/// <summary>
/// Y轴
/// </summary>
public UIAxis YAxis { get; set; } = new UIAxis(UIAxisType.Value);
public UIAxis YAxis { get; private set; } = new UIAxis(UIAxisType.Value);
/// <summary>
/// 序列
/// </summary>
public List<UIBarSeries> Series = new List<UIBarSeries>();
public readonly List<UIBarSeries> Series = new List<UIBarSeries>();
/// <summary>
/// 绘图表格
/// </summary>
public UIChartGrid Grid = new UIChartGrid();
public readonly UIChartGrid Grid = new UIChartGrid();
/// <summary>
/// X轴自定义刻度线

View File

@ -36,13 +36,13 @@ namespace Sunny.UI
public bool ShowZeroValue { get; set; } = false;
public UIAxis XAxis { get; set; } = new UIAxis(UIAxisType.Value);
public UIAxis XAxis { get; private set; } = new UIAxis(UIAxisType.Value);
public UIAxis YAxis { get; set; } = new UIAxis(UIAxisType.Value);
public UIAxis YAxis { get; private set; } = new UIAxis(UIAxisType.Value);
public UIAxis Y2Axis { get; set; } = new UIAxis(UIAxisType.Value);
public UIAxis Y2Axis { get; private set; } = new UIAxis(UIAxisType.Value);
public UILineToolTip ToolTip { get; set; } = new UILineToolTip();
public UILineToolTip ToolTip { get; private set; } = new UILineToolTip();
/// <summary>
/// 析构函数

View File

@ -28,7 +28,7 @@ namespace Sunny.UI
{
public sealed class UIPieOption : UIOption, IDisposable
{
public List<UIPieSeries> Series = new List<UIPieSeries>();
public readonly List<UIPieSeries> Series = new List<UIPieSeries>();
public UIPieToolTip ToolTip { get; set; } = new UIPieToolTip();
@ -86,7 +86,7 @@ namespace Sunny.UI
public class UIDoughnutOption : UIOption, IDisposable
{
public List<UIDoughnutSeries> Series = new List<UIDoughnutSeries>();
public readonly List<UIDoughnutSeries> Series = new List<UIDoughnutSeries>();
public UIPieToolTip ToolTip { get; set; } = new UIPieToolTip();
@ -163,7 +163,7 @@ namespace Sunny.UI
internal readonly List<UIPieSeriesData> Data = new List<UIPieSeriesData>();
public UIPieSeriesLabel Label = new UIPieSeriesLabel();
public readonly UIPieSeriesLabel Label = new UIPieSeriesLabel();
public delegate Color OnDataColorChangeEventHandler(double data);