解决海图索引超过2000头像不显示问题
This commit is contained in:
1 parent
70a8bc0000
commit
a2ff7604cc
2 files changed
+28
-8
No files matched your search
@@ -565,6 +565,23 @@ namespace ChartAndGraph
|
||||
return true;
|
||||
}
|
||||
|
||||
public int GetViewIndex(int dataIndex,string category)
|
||||
{
|
||||
CategoryData data = (CategoryData)mData[category];
|
||||
int viewIndex = 0;
|
||||
List<DoubleVector3> points = data.getPoints();
|
||||
if (points.Count == 0)
|
||||
viewIndex = 0;
|
||||
if (dataIndex < 0)
|
||||
viewIndex = 0;
|
||||
for (int i = 0; i < points.Count; i++)
|
||||
{
|
||||
if (points[i].x == dataIndex)
|
||||
viewIndex = i;
|
||||
}
|
||||
return viewIndex;
|
||||
}
|
||||
|
||||
public DoubleVector3 GetPoint(string category, int index)
|
||||
{
|
||||
CategoryData data = (CategoryData)mData[category];
|
||||
|
||||
Reference in new issue
Block a user