mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 00:20:18 +00:00
修复Time时间轴在开启Animation时动态变更效果异常的问题
This commit is contained in:
@@ -161,6 +161,7 @@ namespace XCharts.Runtime
|
||||
? (new DateTime(dtMin.Year, dtMin.Month, 1).AddMonths(1))
|
||||
: (minTimestamp > firstValue ? DateTimeUtil.GetDateTime(secondValue) : DateTimeUtil.GetDateTime(firstValue));
|
||||
tick = num * 365 * 24 * 3600;
|
||||
dtStart = new DateTime(dtStart.Year, dtStart.Month, 1);
|
||||
while (dtStart.Ticks < dtMax.Ticks)
|
||||
{
|
||||
list.Add(DateTimeUtil.GetTimestamp(dtStart));
|
||||
@@ -173,6 +174,7 @@ namespace XCharts.Runtime
|
||||
var dtStart = (firstValue == 0 || secondValue == 0 || (minTimestamp > firstValue && minTimestamp > secondValue))
|
||||
? (new DateTime(dtMin.Year, dtMin.Month, 1).AddMonths(1))
|
||||
: (minTimestamp > firstValue ? DateTimeUtil.GetDateTime(secondValue) : DateTimeUtil.GetDateTime(firstValue));
|
||||
dtStart = new DateTime(dtStart.Year, dtStart.Month, 1);
|
||||
tick = num * 30 * 24 * 3600;
|
||||
while (dtStart.Ticks < dtMax.Ticks)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user