mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-28 20:28:46 +00:00
[bug] fix AxisLabel.onZero not work in YAxis
This commit is contained in:
@@ -54,6 +54,7 @@
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2022.07.02) 修复`YAxis`的`AxisLabel`设置`onZero`不生效的问题
|
||||||
* (2022.07.02) 修复`AxisLabel`代码设置`distance`属性后一直刷新的问题
|
* (2022.07.02) 修复`AxisLabel`代码设置`distance`属性后一直刷新的问题
|
||||||
* (2022.06.30) 修复`Runtime`下代码创建图表时组件无法初始化的问题
|
* (2022.06.30) 修复`Runtime`下代码创建图表时组件无法初始化的问题
|
||||||
* (2022.06.29) 增加`Tooltip`的`itemFormatter`支持`{c0}`显示各维度数据 (#205)
|
* (2022.06.29) 增加`Tooltip`的`itemFormatter`支持`{c0}`显示各维度数据 (#205)
|
||||||
|
|||||||
@@ -72,7 +72,8 @@ namespace XCharts.Runtime
|
|||||||
if (grid == null)
|
if (grid == null)
|
||||||
return Vector3.zero;
|
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,
|
chart.theme.axis,
|
||||||
scaleWid,
|
scaleWid,
|
||||||
grid.context.x,
|
grid.context.x,
|
||||||
|
|||||||
Reference in New Issue
Block a user