I want get StaffId
on MessageBox when I click for example on David point chart (on Blue area of David as Image shows).
I mean StaffId
of clicked employee's name.
Here is my series presentation..
var series = chart1.Series.Add("Series1");
series.XValueMember = "StaffId";
series.YValueMembers = "Total";
series.Name = "Employee";
and the Linq query I am using
var result = (from u in db.Transactions
join st in db.Users on u.StaffId equals st.UserId
group u by u.Users.FirstName into g
select new
{
StaffId = g.Key,
Total = g.Count()
}).ToList();
chart1.DataSource = result;
chart1.DataBind();
chart1.Show();
I tried like this but not working
private void chart1_MouseClick(object sender, MouseEventArgs e)
{
// Totally stop here .. ;)
}