c# - trying to create the click event handler -
so i've made range bar chart ms chart control. have question:
how can implement event handler when user clicks on red colour? can't see 1 anywhere.
i uploading sample graph here
i want show graph if click on red colour on graph
so how can create click event handler 1
see find region part of live using c# similar question ... within click handler
var pos = e.location; var results = chart1.hittest(pos.x, pos.y, false, chartelementtype.datapoint); foreach (var result in results) { if (result.chartelementtype == chartelementtype.datapoint) { if (result.series.points[result.pointindex].color == color.red) { console.writeline("success?"); } } }
note color null on particular point appear red on graph (it obtained series). long manually set color on clickable points, work, may want think whether color thing should testing.
Comments
Post a Comment