修复AxisLabelformatterFunction在数值轴时value不对的问题

This commit is contained in:
monitor1394
2023-06-12 08:05:10 +08:00
parent 42c2c91f03
commit 00274567cf
2 changed files with 3 additions and 1 deletions

View File

@@ -66,6 +66,8 @@ slug: /changelog
## master
* (2023.06.12) 修复`AxisLabel``formatterFunction`在数值轴时`value`不对的问题
## v3.7.0
版本要点:

View File

@@ -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);
}
}
}