优化SerieLabel

This commit is contained in:
monitor1394
2021-07-04 20:38:26 +08:00
parent 3db082c376
commit 3cee022480
2 changed files with 2 additions and 2 deletions

View File

@@ -1581,7 +1581,7 @@ namespace XCharts
content = SerieLabelHelper.GetFormatterContent(serie, serieData, value, total,
serieLabel, theme.GetColor(i));
}
serieData.SetLabelActive(value != 0 && serieData.labelPosition != Vector3.zero);
serieData.SetLabelActive(serieData.labelPosition != Vector3.zero);
var invert = serieLabel.autoOffset
&& serie.type == SerieType.Line
&& SerieHelper.IsDownPoint(serie, j)