mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-21 16:00:24 +00:00
修复Time时间轴在开启Animation时动态变更效果异常的问题
This commit is contained in:
@@ -77,6 +77,7 @@ slug: /changelog
|
||||
|
||||
## master
|
||||
|
||||
* (2024.11.22) 修复`Time`时间轴在开启`Animation`时动态变更效果异常的问题
|
||||
* (2024.11.18) 优化`Line`在数据点过密时有更好的绘制效果
|
||||
* (2024.11.16) 修复`Animation`无法通过代码开启的问题 (#334)
|
||||
* (2024.11.13) 修复`DataZoom`的start和end在代码动态修改时图表不刷新的问题
|
||||
|
||||
@@ -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