mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 05:10:12 +00:00
修复Tooltip指示的Serie数据项索引异常的问题
This commit is contained in:
@@ -64,6 +64,7 @@ slug: /changelog
|
||||
|
||||
## master
|
||||
|
||||
* (2022.11.19) 修复`Tooltip`指示的`Serie`数据项索引异常的问题
|
||||
* (2022.11.27) 优化`Axis`的`AxisName`的偏移设置
|
||||
* (2022.11.27) 优化`Comment`的位置,用`Location代替Position`
|
||||
* (2022.11.27) 优化`Tooltip`的`LineStyle`支持设置`Shadow`时的颜色
|
||||
|
||||
@@ -283,8 +283,10 @@ namespace XCharts.Runtime
|
||||
{
|
||||
if (isTriggerAxis)
|
||||
{
|
||||
var index = serie.context.dataZoomStartIndex + (int) xAxis.context.pointerValue;
|
||||
serie.context.pointerEnter = true;
|
||||
serie.context.pointerAxisDataIndexs.Add(serie.context.dataZoomStartIndex + (int) xAxis.context.pointerValue);
|
||||
serie.context.pointerAxisDataIndexs.Add(index);
|
||||
serie.context.pointerItemDataIndex = index;
|
||||
xAxis.context.axisTooltipValue = xAxis.context.pointerValue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user