* UILineChart: 自定义X轴坐标时,点数据提示显示为原始值
This commit is contained in:
parent
b31cd59f58
commit
a1b2ebde3f
@ -40,6 +40,7 @@
|
|||||||
* 2022-07-30: V3.2.2 坐标轴的日期格式重构调整至坐标轴标签 AxisLabel.DateTimeFormat
|
* 2022-07-30: V3.2.2 坐标轴的日期格式重构调整至坐标轴标签 AxisLabel.DateTimeFormat
|
||||||
* 2022-08-17: V3.2.3 修复数据全为Nan时绘制出错
|
* 2022-08-17: V3.2.3 修复数据全为Nan时绘制出错
|
||||||
* 2022-09-19: V3.2.4 增加鼠标可框选缩放属性MouseZoom
|
* 2022-09-19: V3.2.4 增加鼠标可框选缩放属性MouseZoom
|
||||||
|
* 2023-03-26: V3.3.3 自定义X轴坐标时,点数据提示显示为原始值
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
@ -839,12 +840,12 @@ namespace Sunny.UI
|
|||||||
sb.Append(Option.XAxis.Name + ": ");
|
sb.Append(Option.XAxis.Name + ": ");
|
||||||
|
|
||||||
string customlabel = "";
|
string customlabel = "";
|
||||||
if (Option.XAxis.HaveCustomLabels)
|
//if (Option.XAxis.HaveCustomLabels)
|
||||||
{
|
//{
|
||||||
int ci = (int)point.X;
|
// int ci = (int)((point.X - Option.XAxis.CustomLabels.Start) / Option.XAxis.CustomLabels.Interval);
|
||||||
customlabel = Option.XAxis.CustomLabels.GetLabel(ci);
|
// customlabel = Option.XAxis.CustomLabels.GetLabel(ci);
|
||||||
sb.Append(customlabel);
|
// sb.Append(customlabel);
|
||||||
}
|
//}
|
||||||
|
|
||||||
if (customlabel.IsNullOrEmpty())
|
if (customlabel.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user