修复Tooltip的指示器在某些情况下指示位置不准的问题

This commit is contained in:
monitor1394
2021-03-14 05:23:08 +08:00
parent 554a681cc3
commit 89b5bcd94c
5 changed files with 45 additions and 41 deletions

View File

@@ -93,6 +93,7 @@ namespace XCharts
var categoryCount = axis.GetDataNumber(dataZoom);
int segment = (axis.boundaryGap ? categoryCount : categoryCount - 1);
segment = segment <= 0 ? dataCount : segment;
if (segment <= 0) segment = 1;
return coordinateWidth / segment;
}