[bug] fix axis label active

This commit is contained in:
monitor1394
2022-06-08 08:32:29 +08:00
parent 6e87f82131
commit 1d1ad6fa57
2 changed files with 7 additions and 0 deletions

View File

@@ -53,6 +53,8 @@
## master
* (2022.06.08) 修复`Axis``AxisLabel`在设置不显示时还显示首尾两个`label`的问题
## v3.0.0
* 更健壮的底层框架。

View File

@@ -300,6 +300,11 @@ namespace XCharts
internal void CheckValueLabelActive(Axis axis, int i, ChartLabel label, Vector3 pos)
{
if (!axis.show || !axis.axisLabel.show)
{
label.SetTextActive(false);
return;
}
if (axis.IsValue())
{
if (orient == Orient.Horizonal)