[optimize][axis] optimize minor split line of time axis

This commit is contained in:
monitor1394
2022-08-09 13:38:23 +08:00
parent f1f2ea78be
commit 9981ce2d23
3 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using UnityEngine;
namespace XCharts.Runtime
{
@@ -160,7 +161,7 @@ namespace XCharts.Runtime
private static void AddTickTimestamp(List<double> list, int startTimestamp, int maxTimestamp, int tickSecond)
{
while (startTimestamp < maxTimestamp)
while (startTimestamp <= maxTimestamp)
{
list.Add(startTimestamp);
startTimestamp += tickSecond;