* UIChartOption: 图表的一些参数设置为只读或者私有设置
This commit is contained in:
parent
0a7e7a0f41
commit
f9062226f8
@ -34,7 +34,7 @@ namespace Sunny.UI
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// X轴
|
/// X轴
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public UIAxis XAxis { get; set; } = new UIAxis(UIAxisType.Category);
|
public UIAxis XAxis { get; private set; } = new UIAxis(UIAxisType.Category);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 工具提示
|
/// 工具提示
|
||||||
@ -44,17 +44,17 @@ namespace Sunny.UI
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Y轴
|
/// Y轴
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public UIAxis YAxis { get; set; } = new UIAxis(UIAxisType.Value);
|
public UIAxis YAxis { get; private set; } = new UIAxis(UIAxisType.Value);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 序列
|
/// 序列
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<UIBarSeries> Series = new List<UIBarSeries>();
|
public readonly List<UIBarSeries> Series = new List<UIBarSeries>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 绘图表格
|
/// 绘图表格
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public UIChartGrid Grid = new UIChartGrid();
|
public readonly UIChartGrid Grid = new UIChartGrid();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// X轴自定义刻度线
|
/// X轴自定义刻度线
|
||||||
|
@ -36,13 +36,13 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
public bool ShowZeroValue { get; set; } = false;
|
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>
|
/// <summary>
|
||||||
/// 析构函数
|
/// 析构函数
|
||||||
|
@ -28,7 +28,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
public sealed class UIPieOption : UIOption, IDisposable
|
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();
|
public UIPieToolTip ToolTip { get; set; } = new UIPieToolTip();
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
public class UIDoughnutOption : UIOption, IDisposable
|
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();
|
public UIPieToolTip ToolTip { get; set; } = new UIPieToolTip();
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
internal readonly List<UIPieSeriesData> Data = new List<UIPieSeriesData>();
|
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);
|
public delegate Color OnDataColorChangeEventHandler(double data);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user