整理代码

This commit is contained in:
monitor1394
2019-06-21 09:34:33 +08:00
parent 3dab004731
commit fc95338274
34 changed files with 64 additions and 94 deletions

View File

@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using UnityEngine;
namespace XCharts
@@ -94,7 +93,7 @@ namespace XCharts
m_Data.Add(value);
}
public float GetData(int index,DataZoom dataZoom = null)
public float GetData(int index, DataZoom dataZoom = null)
{
var showData = GetData(dataZoom);
if (index >= 0 && index <= showData.Count - 1)
@@ -133,7 +132,7 @@ namespace XCharts
{
filterStart = startIndex;
filterEnd = endIndex;
if(m_Data.Count > 0)
if (m_Data.Count > 0)
{
var count = endIndex == startIndex ? 1 : endIndex - startIndex + 1;
filterData = m_Data.GetRange(startIndex, count);