mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-31 05:48:45 +00:00
修复Axis的IndicatorLabel无法自定义color的问题
This commit is contained in:
@@ -66,6 +66,7 @@ slug: /changelog
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2023.06.30) 修复`Axis`的`IndicatorLabel`无法自定义`color`的问题
|
||||||
* (2023.06.12) 修复`AxisLabel`的`formatterFunction`在数值轴时`value`不对的问题
|
* (2023.06.12) 修复`AxisLabel`的`formatterFunction`在数值轴时`value`不对的问题
|
||||||
|
|
||||||
## v3.7.0
|
## v3.7.0
|
||||||
|
|||||||
@@ -210,7 +210,11 @@ namespace XCharts.Runtime
|
|||||||
label.color = textColor;
|
label.color = textColor;
|
||||||
else
|
else
|
||||||
label.color = axis.indicatorLabel.background.color;
|
label.color = axis.indicatorLabel.background.color;
|
||||||
|
|
||||||
|
if (ChartHelper.IsClearColor(axis.indicatorLabel.textStyle.color))
|
||||||
label.SetTextColor(Color.white);
|
label.SetTextColor(Color.white);
|
||||||
|
else
|
||||||
|
label.SetTextColor(axis.indicatorLabel.textStyle.color);
|
||||||
}
|
}
|
||||||
|
|
||||||
private ISerieContainer GetPointerContainerAndSeries(Tooltip tooltip, List<Serie> list)
|
private ISerieContainer GetPointerContainerAndSeries(Tooltip tooltip, List<Serie> list)
|
||||||
|
|||||||
Reference in New Issue
Block a user