【问题标题】:Devexpress how to get clicked point in SwiftPlotSeriesView?Devexpress 如何在 SwiftPlotSeriesView 中获得点击点?
【发布时间】:2014-07-31 09:45:34
【问题描述】:

我在 winforms 中使用 DEvexpress XtraCharts,我想知道如何获得点击的系列点? 我的代码是

 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",

View = new DevExpress.XtraCharts.SwiftPlotSeriesView()});

该点始终为空。

【问题讨论】:

    标签: charts onclick devexpress


    【解决方案1】:

    不可能,在 devexpress 支持中发现了这一点:Swift 绘图图不呈现单个点:所有点都连接成一条线。请注意,Swift 绘图的运行时系列命中测试功能已禁用,因为它需要大量额外计算。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-13
      • 2015-03-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-17
      • 2019-10-28
      相关资源
      最近更新 更多