优化Candlestick对时间轴的支持

This commit is contained in:
monitor1394
2025-10-30 22:48:36 +08:00
parent 0499126e55
commit 2cb82526bc
8 changed files with 108 additions and 70 deletions

View File

@@ -485,6 +485,7 @@ namespace XCharts.Runtime
context.maxValue = 0;
context.destMinValue = 0;
context.destMaxValue = 0;
context.labelValueList.Clear();
}
public Axis Clone()

View File

@@ -364,7 +364,7 @@ namespace XCharts
{
var lastCount = axis.context.labelValueList.Count;
axis.context.tickValue = DateTimeUtil.UpdateTimeAxisDateTimeList(axis.context.labelValueList,
axis.context.minValue, axis.context.maxValue, axis.splitNumber);
axis.context.minValue, axis.context.maxValue, axis.splitNumber, axis.ceilRate);
if (axis.context.labelValueList.Count != lastCount)
axis.SetAllDirty();