mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-31 13:58:48 +00:00
修复AxisLabel的formatterFunction在数值轴时value不对的问题
This commit is contained in:
@@ -66,6 +66,8 @@ slug: /changelog
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2023.06.12) 修复`AxisLabel`的`formatterFunction`在数值轴时`value`不对的问题
|
||||||
|
|
||||||
## v3.7.0
|
## v3.7.0
|
||||||
|
|
||||||
版本要点:
|
版本要点:
|
||||||
|
|||||||
@@ -413,7 +413,7 @@ namespace XCharts.Runtime
|
|||||||
protected string GetFormatterFunctionContent(int labelIndex, double value, string currentContent)
|
protected string GetFormatterFunctionContent(int labelIndex, double value, string currentContent)
|
||||||
{
|
{
|
||||||
return m_FormatterFunction == null ? currentContent :
|
return m_FormatterFunction == null ? currentContent :
|
||||||
m_FormatterFunction(labelIndex, labelIndex, null, currentContent);
|
m_FormatterFunction(labelIndex, value, null, currentContent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user