修复AxisLineOnZeroYAxis不生效的问题 #116

This commit is contained in:
monitor1394
2021-02-03 12:51:50 +08:00
parent 95f9152aa7
commit e56edf9a8a
3 changed files with 3 additions and 1 deletions

View File

@@ -30,6 +30,7 @@
## Latest
* (2021.02.03) Fixed an issue where `Axisline` `OnZero` did not work on `YAxis` #116
* (2021.01.29) Fixed incorrect display of `Tick` on `Category` axis when `BoundaryGap` and `alignWithLabel` are `True` #115
* (2021.01.25) Optimize some details
* (2021.01.22) Fixed a `Inpsector` displayed error

View File

@@ -30,6 +30,7 @@
## Latest
* (2021.02.03) 修复`AxisLine``OnZero``YAxis`不生效的问题 #116
* (2021.01.29) 修复`Category`轴在`BoundaryGap``AlignWithLabel``True``Tick`显示效果不对的问题 #115
* (2021.01.25) 优化一些细节
* (2021.01.22) 修复`Inpsector`上部分属性显示异常的问题

View File

@@ -2049,7 +2049,7 @@ namespace XCharts
if (!axis.axisLine.onZero) return 0;
foreach (var xAxis in m_XAxes)
{
if (xAxis.IsValue() && xAxis.gridIndex == axis.gridIndex) return xAxis.runtimeZeroYOffset;
if (xAxis.IsValue() && xAxis.gridIndex == axis.gridIndex) return xAxis.runtimeZeroXOffset;
}
return 0;
}