修复DataZoom开启时X轴Label可能会显示在图表外的问题

This commit is contained in:
monitor1394
2023-02-02 08:31:15 +08:00
parent 22715dab95
commit 3d09d82abd
2 changed files with 2 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ slug: /changelog
## master
* (2023.02.02) 修复`DataZoom`开启时`X轴``Label`可能会显示在图表外的问题
* (2023.02.02) 优化`SerieData``ignore`设置时的忽略数据判断
* (2023.02.01) 修复`XChartsMgr.ContainsChart()`接口异常
* (2023.01.31) 增加`InputSystem`的支持 (#242) (by Bian-Sh)

View File

@@ -219,7 +219,7 @@ namespace XCharts.Runtime
if (axis.boundaryGap)
{
scaleNum = dataCount > 2 && dataCount % splitNum == 0 ?
scaleNum = dataCount > 1 && dataCount % splitNum == 0 ?
splitNum + 1 :
splitNum + 2;
}