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 enter image description 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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -