time 类型的坐标轴是“连续型”坐标轴(基于时间戳),它不依赖 xAxis.data,而是从 series 数据中自动提取时间信息 来决定坐标轴的刻度和范围。

This commit is contained in:
智能大石头 2025-07-28 15:11:48 +08:00
parent 4fe3c4fc3c
commit e2f76c5cf2
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,8 @@ public class ECharts : IExtend
if (selector != null)
_timeSelector = e => selector(e as T) + "";
axis.Data = list.Select(GetTimeValue).ToArray();
// time 类型的坐标轴是“连续型”坐标轴(基于时间戳),它不依赖 xAxis.data而是从 series 数据中自动提取时间信息 来决定坐标轴的刻度和范围。
//axis.Data = list.Select(GetTimeValue).ToArray();
if (Symbol.IsNullOrEmpty() && list.Count > 100) Symbol = "none";