his.chartIRC_RATES.MouseMove += new MouseEventHandler(chartIRC_RATES_MouseMove);
ToolTipController toolTipController = new ToolTipController();
/// <summary>
/// 鼠标显示节点坐标
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void chartIRC_RATES_MouseMove(object sender, MouseEventArgs e)
{
ChartHitInfo hitInfo = chartIRC_RATES.CalcHitInfo(e.Location);
StringBuilder builder = new StringBuilder();
if (hitInfo.SeriesPoint != null)
{
builder.AppendLine(" X: " + hitInfo.SeriesPoint.Argument+"D");
builder.AppendLine(" Y: " + string.Format("{0:f4}", Convert.ToDouble(hitInfo.SeriesPoint.Values[0]) * 100) + "%");
}
toolTipController.ShowHint(builder.ToString(), chartIRC_RATES.PointToScreen(e.Location));
}