Events in wxFreeChart
Posted: Thu Oct 08, 2015 2:54 am
What I've done is built a simple Gantt chart. What I'd like to do is be able to handle mouse clicks on the Gantt bars. Ideally, I'd like the user to be able to drag the bar back and forth on the horizontal axis but... baby steps for now.
It's trivial get the mouse coordinates from the click event, but is there a way to get GanttPlot to report where the bars are located, so I could get the dataset index, or something?
AxisPlot.ToDataCoords() looks promising, but I have no idea how to how to return my AxisPlots from the plot. Is there a GanttPlot.GetAxis(AXIS_LEFT) that I missed?
Thanks for reading this. I did a search and I didn't find anything but I apologize in advance if this has been answered elsewhere.
Sincerely,
Richard W.
It's trivial get the mouse coordinates from the click event, but is there a way to get GanttPlot to report where the bars are located, so I could get the dataset index, or something?
AxisPlot.ToDataCoords() looks promising, but I have no idea how to how to return my AxisPlots from the plot. Is there a GanttPlot.GetAxis(AXIS_LEFT) that I missed?
Thanks for reading this. I did a search and I didn't find anything but I apologize in advance if this has been answered elsewhere.
Sincerely,
Richard W.