From 426d437e6da97afb09e90458eb547b36d3475152 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Wed, 30 Mar 2022 13:15:24 +0800 Subject: [PATCH] fixed axis label custom color --- Runtime/Internal/Utilities/ChartHelper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/Internal/Utilities/ChartHelper.cs b/Runtime/Internal/Utilities/ChartHelper.cs index bade1c96..d639fc69 100644 --- a/Runtime/Internal/Utilities/ChartHelper.cs +++ b/Runtime/Internal/Utilities/ChartHelper.cs @@ -413,7 +413,7 @@ namespace XCharts.Runtime label.UpdateIcon(iconStyle, axis.GetIcon(index)); label.label.SetActive(labelShow); label.SetText(content); - label.color = textStyle.color; + label.color = textStyle.backgroundColor; return label; } @@ -428,7 +428,7 @@ namespace XCharts.Runtime label.SetAutoSize(true); label.label.SetActive(true); label.SetText(content); - label.color = textStyle.color; + label.color = textStyle.backgroundColor; return label; } @@ -473,7 +473,7 @@ namespace XCharts.Runtime label.label = AddTextObject("Text", label.gameObject.transform, anchorMin, anchorMax, pivot, sizeDelta, textStyle, theme.tooltip, label.label); label.SetAutoSize(true); label.SetText(""); - label.color = textStyle.color; + label.color = textStyle.backgroundColor; return label; }