From df57c9568618acb255a61de48477f31715dbc1ea Mon Sep 17 00:00:00 2001 From: Sunny Date: Sat, 30 Jul 2022 11:38:54 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIChartOption:=20=E6=B8=85=E7=90=86?= =?UTF-8?q?=E4=B8=80=E4=BA=9B=E6=97=A0=E7=94=A8=E7=9A=84=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Charts/UIBarChart.cs | 4 ++-- SunnyUI/Charts/UILineChart.cs | 8 ++++---- SunnyUI/Charts/UIOption.cs | 29 ----------------------------- 3 files changed, 6 insertions(+), 35 deletions(-) diff --git a/SunnyUI/Charts/UIBarChart.cs b/SunnyUI/Charts/UIBarChart.cs index 7e0f352b..b900cc05 100644 --- a/SunnyUI/Charts/UIBarChart.cs +++ b/SunnyUI/Charts/UIBarChart.cs @@ -22,8 +22,8 @@ * 2021-01-01: V3.0.9 增加柱子上显示数值 * 2022-03-08: V3.1.1 增加X轴文字倾斜 * 2022-05-27: V3.1.9 重写Y轴坐标显示 - * 2022-07-29: V3.2.2 数据显示的小数位数重构调整至数据序列Series.DecimalPlaces - * 2022-07-30: V3.2.2 坐标轴的小数位数重构调整至AxisLabel.DecimalPlaces + * 2022-07-29: V3.2.2 数据显示的小数位数重构调整至数据序列 Series.DecimalPlaces + * 2022-07-30: V3.2.2 坐标轴的小数位数重构调整至坐标轴标签 AxisLabel.DecimalPlaces ******************************************************************************/ using System; diff --git a/SunnyUI/Charts/UILineChart.cs b/SunnyUI/Charts/UILineChart.cs index cefdef0e..48f78969 100644 --- a/SunnyUI/Charts/UILineChart.cs +++ b/SunnyUI/Charts/UILineChart.cs @@ -34,10 +34,10 @@ * 2022-04-19: V3.1.5 关闭Smooth绘制,数值差距大或者持续缩放会出错 * 2022-07-11: V3.2.1 修改两个点时可以不显示连接线 * 2022-07-26: V3.2.2 修复双Y轴数据点提示文字显示 - * 2022-07-30: V3.2.2 数据显示的小数位数重构调整至数据序列Series.XAxisDecimalPlaces,YAxisDecimalPlaces - * 2022-07-30: V3.2.2 数据显示的日期格式重构调整至数据序列Series.XAxisDateTimeFormat - * 2022-07-30: V3.2.2 坐标轴的小数位数重构调整至AxisLabel.DecimalPlaces - * 2022-07-30: V3.2.2 坐标轴的日期格式重构调整至AxisLabel.DateTimeFormat + * 2022-07-30: V3.2.2 数据显示的小数位数重构调整至数据序列 Series.XAxisDecimalPlaces,YAxisDecimalPlaces + * 2022-07-30: V3.2.2 数据显示的日期格式重构调整至数据序列 Series.XAxisDateTimeFormat + * 2022-07-30: V3.2.2 坐标轴的小数位数重构调整至坐标轴标签 AxisLabel.DecimalPlaces + * 2022-07-30: V3.2.2 坐标轴的日期格式重构调整至坐标轴标签 AxisLabel.DateTimeFormat ******************************************************************************/ using System; diff --git a/SunnyUI/Charts/UIOption.cs b/SunnyUI/Charts/UIOption.cs index 85570eff..c3e21033 100644 --- a/SunnyUI/Charts/UIOption.cs +++ b/SunnyUI/Charts/UIOption.cs @@ -40,11 +40,6 @@ namespace Sunny.UI public class UIAxis { - public UIAxis() - { - - } - public UIAxis(UIAxisType axisType) { Type = axisType; @@ -54,13 +49,6 @@ namespace Sunny.UI public UIAxisType Type { get; } - /// - /// 坐标轴的分割段数,需要注意的是这个分割段数只是个预估值 - /// 最后实际显示的段数会在这个基础上根据分割后坐标轴刻度显示的易读程度作调整。 - /// 在类目轴中无效。 - /// - public int SplitNumber { get; set; } = 5; - /// /// 是否是脱离 0 值比例。设置成 true 后坐标刻度不会强制包含零刻度。在双数值轴的散点图中比较有用。 /// @@ -277,11 +265,6 @@ namespace Sunny.UI public class UIAxisTick { - /// - /// 类目轴中在为 true 的时候有效,可以保证刻度线和标签对齐。 - /// - public bool AlignWithLabel { get; set; } - /// /// 是否显示坐标轴刻度。 /// @@ -291,16 +274,6 @@ namespace Sunny.UI /// 坐标轴刻度的长度。 /// public int Length { get; set; } = 5; - - /// - /// 坐标轴刻度的显示间隔,在类目轴中有效。默认同 axisLabel.interval 一样。 - /// 默认会采用标签不重叠的策略间隔显示标签。 - /// 可以设置成 0 强制显示所有标签。 - /// 如果设置为 1,表示『隔一个标签显示一个标签』,如果值为 2,表示隔两个标签显示一个标签,以此类推。 - /// - public int Interval { get; set; } = 0; - - public int Distance { get; set; } = 0; } public class UIScaleLine @@ -312,8 +285,6 @@ namespace Sunny.UI public float Size { get; set; } = 1.0f; - public object Tag { get; set; } - public bool DashDot { get; set; } public UIScaleLine()