Charts Devexpress如何在SwiftPlotSeriesView中获取点击点?
我正在使用winforms的DevXpress XtraCharts,我想知道如何获得单击的系列点? 我的代码是Charts Devexpress如何在SwiftPlotSeriesView中获取点击点?,charts,onclick,devexpress,Charts,Onclick,Devexpress,我正在使用winforms的DevXpress XtraCharts,我想知道如何获得单击的系列点? 我的代码是 private void chart_MouseClick(object sender, MouseEventArgs e) { ChartHitInfo hi = chart.CalcHitInfo(e.X, e.Y); SeriesPoint point = hi.SeriesPoint;
private void chart_MouseClick(object sender, MouseEventArgs e)
{
ChartHitInfo hi = chart.CalcHitInfo(e.X, e.Y);
SeriesPoint point = hi.SeriesPoint;
if (point != null)
{ // do stuff
}
}
声明:
chart.Series.Add(new Series() { Name = "Max" + channelName, LegendText = "Max",
视图=新建DevExpress.XtraCharts.SwiftPlotSeriesView())
该点始终为空。不可能,请在devexpress支持中找到:Swift绘图图表不呈现单个点:所有点都连接在一条线上。请注意,Swift绘图禁用了运行时系列命中测试功能,因为它需要大量额外计算