in

Software FX Community

Discuss and find help for all Software FX products.

Click event on area chart

Last post 02-05-2010 3:19 PM by JuanC. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-04-2010 11:26 AM

    • Mick
    • Top 25 Contributor
    • Joined on 03-23-2009

    Click event on area chart

    Version 8.0.3581.26941

    The ChartFX.WPF.Chart.MouseClick event is not firing for Area charts, but is for Bar/Pie. There may be others, but these are the only ones I'm currently using in my system (and have tested).

            private void CreateChartsButton_Click(object sender, RoutedEventArgs e)
            {
                // Separate scope to eliminate copy/paste errors
                {
                    Chart chart = new Chart { Gallery = Gallery.Area };
                    chart.MouseClick += delegate { MessageBox.Show("Chart clicked"); };
                    Window window = new Window { Title = "Chart click", Content = chart, Width = 500, Height = 300, };
                    window.Show();
                }
                // Separate scope to eliminate copy/paste errors
                {
                    Chart chart = new Chart { Gallery = Gallery.Bar };
                    chart.MouseClick += delegate { MessageBox.Show("Chart clicked"); };
                    Window window = new Window { Title = "Chart click", Content = chart, Width = 500, Height = 300, };
                    window.Show();
                }
            }

    Is there some special way that the MouseClick event works on an area chart?

    Thank you,

    Mick

  • 02-05-2010 3:19 PM In reply to

    • JuanC
    • Top 10 Contributor
    • Joined on 03-02-2007

    Re: Click event on area chart

    This is a bug fixed on build 3688 or later (this should be available as a hotfix in a couple of days).

    Note that the Point and Value reported in the EventArgs will be the index/value closer to the mouse position.

    JuanC

Page 1 of 1 (2 items)
Copyright 2008 Software FX, Inc.