Jump to content
Software FX Community

Click event on area chart


Mick

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...