[bug] fix AxisLabel.onZero not work in YAxis

This commit is contained in:
monitor1394
2022-07-02 16:51:45 +08:00
parent fbdb51d847
commit 06574a201a
2 changed files with 3 additions and 1 deletions

View File

@@ -54,6 +54,7 @@
## master
* (2022.07.02) 修复`YAxis``AxisLabel`设置`onZero`不生效的问题
* (2022.07.02) 修复`AxisLabel`代码设置`distance`属性后一直刷新的问题
* (2022.06.30) 修复`Runtime`下代码创建图表时组件无法初始化的问题
* (2022.06.29) 增加`Tooltip``itemFormatter`支持`{c0}`显示各维度数据 (#205)

View File

@@ -72,7 +72,8 @@ namespace XCharts.Runtime
if (grid == null)
return Vector3.zero;
return GetLabelPosition(i, Orient.Vertical, component, null,
var xAxis = chart.GetChartComponent<XAxis>(component.index);
return GetLabelPosition(i, Orient.Vertical, component, xAxis,
chart.theme.axis,
scaleWid,
grid.context.x,