mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 18:00:26 +00:00
修复Tooltip的指示器在某些情况下指示位置不准的问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user