diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 06875db3..b8b3b7d1 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -66,6 +66,8 @@ slug: /changelog ## master +* (2023.06.12) 修复`AxisLabel`的`formatterFunction`在数值轴时`value`不对的问题 + ## v3.7.0 版本要点: diff --git a/Runtime/Component/Label/LabelStyle.cs b/Runtime/Component/Label/LabelStyle.cs index a97e5ae4..69698c07 100644 --- a/Runtime/Component/Label/LabelStyle.cs +++ b/Runtime/Component/Label/LabelStyle.cs @@ -413,7 +413,7 @@ namespace XCharts.Runtime protected string GetFormatterFunctionContent(int labelIndex, double value, string currentContent) { return m_FormatterFunction == null ? currentContent : - m_FormatterFunction(labelIndex, labelIndex, null, currentContent); + m_FormatterFunction(labelIndex, value, null, currentContent); } } } \ No newline at end of file