修复AxisIndicatorLabel无法自定义color的问题

This commit is contained in:
monitor1394
2023-06-30 07:48:44 +08:00
parent 00274567cf
commit 45159b186f
2 changed files with 6 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ slug: /changelog
## master
* (2023.06.30) 修复`Axis``IndicatorLabel`无法自定义`color`的问题
* (2023.06.12) 修复`AxisLabel``formatterFunction`在数值轴时`value`不对的问题
## v3.7.0

View File

@@ -210,7 +210,11 @@ namespace XCharts.Runtime
label.color = textColor;
else
label.color = axis.indicatorLabel.background.color;
label.SetTextColor(Color.white);
if (ChartHelper.IsClearColor(axis.indicatorLabel.textStyle.color))
label.SetTextColor(Color.white);
else
label.SetTextColor(axis.indicatorLabel.textStyle.color);
}
private ISerieContainer GetPointerContainerAndSeries(Tooltip tooltip, List<Serie> list)