mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 09:50:15 +00:00
修复Tooltip在开启DataZoom时指示内容不准确的问题
This commit is contained in:
@@ -359,7 +359,7 @@ namespace XCharts.Runtime
|
||||
serie.context.pointerEnter = true;
|
||||
serie.context.pointerAxisDataIndexs.Add(index);
|
||||
serie.context.pointerItemDataIndex = index;
|
||||
yAxis.context.axisTooltipValue = yAxis.context.pointerValue;
|
||||
yAxis.context.axisTooltipValue = index;
|
||||
}
|
||||
}
|
||||
else if (yAxis.IsTime())
|
||||
@@ -652,7 +652,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
dataIndex = double.IsNaN(axis.context.pointerValue)
|
||||
? axis.context.dataZoomStartIndex
|
||||
: axis.context.dataZoomStartIndex + (int)axis.context.axisTooltipValue;
|
||||
: (int)axis.context.axisTooltipValue;
|
||||
category = axis.GetData(dataIndex);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user