修复BarChartonSerieEnteronSerieExit回调无效的问题

This commit is contained in:
monitor1394
2023-08-02 08:31:58 +08:00
parent e3e01587ab
commit 43ba7d47c5
4 changed files with 19 additions and 6 deletions

View File

@@ -502,7 +502,9 @@ namespace XCharts.Runtime
var axis = component as Axis;
if (axis.gridIndex == gridIndex && axis.IsCategory())
{
dataIndex = axis.context.dataZoomStartIndex + (int)axis.context.pointerValue;
dataIndex = double.IsNaN(axis.context.pointerValue)
? axis.context.dataZoomStartIndex
: axis.context.dataZoomStartIndex + (int)axis.context.pointerValue;
category = axis.GetData(dataIndex);
return true;
}