mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 09:20:08 +00:00
增加SerieData的ignore可忽略当前数据项
This commit is contained in:
@@ -1684,7 +1684,7 @@ namespace XCharts
|
||||
var pos = serie.dataPoints[j];
|
||||
var serieLabel = SerieHelper.GetSerieLabel(serie, serieData);
|
||||
var dimension = 1;
|
||||
var isIgnore = serie.IsIgnoreIndex(j, 1);
|
||||
var isIgnore = serie.IsIgnoreIndex(j);
|
||||
serieData.labelObject.SetPosition(serieData.labelPosition);
|
||||
serieData.labelObject.UpdateIcon(serieData.iconStyle);
|
||||
if (serie.show && serieLabel.show && serieData.canShowLabel && !isIgnore)
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace XCharts
|
||||
for (int i = serie.minShow; i < maxCount; i++)
|
||||
{
|
||||
var serieData = showData[i];
|
||||
if (serie.IsIgnoreValue(serieData.GetData(1)))
|
||||
if (serie.IsIgnoreValue(serieData))
|
||||
{
|
||||
serie.dataPoints.Add(Vector3.zero);
|
||||
continue;
|
||||
@@ -185,7 +185,7 @@ namespace XCharts
|
||||
for (int i = serie.minShow; i < maxCount; i++)
|
||||
{
|
||||
var serieData = showData[i];
|
||||
if (serie.IsIgnoreValue(serieData.GetData(1)))
|
||||
if (serie.IsIgnoreValue(serieData))
|
||||
{
|
||||
serie.dataPoints.Add(Vector3.zero);
|
||||
continue;
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace XCharts
|
||||
for (int i = serie.minShow; i < maxCount; i++)
|
||||
{
|
||||
var serieData = showData[i];
|
||||
if (serie.IsIgnoreValue(serieData.GetData(1)))
|
||||
if (serie.IsIgnoreValue(serieData))
|
||||
{
|
||||
serie.dataPoints.Add(Vector3.zero);
|
||||
continue;
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace XCharts
|
||||
for (i = serie.minShow; i < maxCount; i += rate)
|
||||
{
|
||||
if (i == maxCount - 1) includeLastData = true;
|
||||
if (serie.IsIgnoreValue(showData[i].GetData(1)))
|
||||
if (serie.IsIgnoreValue(showData[i]))
|
||||
{
|
||||
serie.dataPoints.Add(Vector3.zero);
|
||||
showData[i].runtimeStackHig = 0;
|
||||
@@ -146,7 +146,7 @@ namespace XCharts
|
||||
if (!includeLastData)
|
||||
{
|
||||
i = maxCount - 1;
|
||||
if (serie.IsIgnoreValue(showData[i].GetData(1)))
|
||||
if (serie.IsIgnoreValue(showData[i]))
|
||||
{
|
||||
serie.dataPoints.Add(Vector3.zero);
|
||||
showData[i].runtimeStackHig = 0;
|
||||
@@ -179,7 +179,7 @@ namespace XCharts
|
||||
if (serie.minShow > 0 && serie.minShow < showData.Count)
|
||||
{
|
||||
i = serie.minShow - 1;
|
||||
if (serie.IsIgnoreValue(showData[i].GetData(1)))
|
||||
if (serie.IsIgnoreValue(showData[i]))
|
||||
{
|
||||
serie.dataPoints.Add(Vector3.zero);
|
||||
showData[i].runtimeStackHig = 0;
|
||||
@@ -197,7 +197,7 @@ namespace XCharts
|
||||
if (serie.maxShow > 0 && serie.maxShow < showData.Count)
|
||||
{
|
||||
i = serie.maxShow;
|
||||
if (serie.IsIgnoreValue(showData[i].GetData(1)))
|
||||
if (serie.IsIgnoreValue(showData[i]))
|
||||
{
|
||||
serie.dataPoints.Add(Vector3.zero);
|
||||
showData[i].runtimeStackHig = 0;
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace XCharts
|
||||
for (int n = 0; n < data.Count; n++)
|
||||
{
|
||||
var serieData = data[n];
|
||||
if (!serieData.canShowLabel || serie.IsIgnoreValue(serieData.GetData(1)))
|
||||
if (!serieData.canShowLabel || serie.IsIgnoreValue(serieData))
|
||||
{
|
||||
serieData.SetLabelActive(false);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user