[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

@@ -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,