[feature][Tooltip] support position

This commit is contained in:
monitor1394
2022-08-26 07:50:48 +08:00
parent 442a51abc1
commit b2f1fd00b1
6 changed files with 72 additions and 36 deletions

View File

@@ -77,7 +77,7 @@ namespace XCharts.Runtime
}
if (pos.y > chartRect.y + chartRect.height)
pos.y = chartRect.y + chartRect.height;
tooltip.UpdateContentPos(pos);
tooltip.UpdateContentPos(pos, chartRect.width / 2, chartRect.height / 2);
}
public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)