hi,
Is there a way to figure out which X axis label was clicked by the user.
I need to recognise which data point on the chart that x axis corresponds.
Thanks,
bp
Hello,
I need to figure out which x axis label was clicked by the user,
I need to redraw the chart with new data based on which x axis label was clicked by user,
If the user clicked on the datapoint instead of axis in the chart, the chart needs to be drawn with different set of data.
Please advice,
Thanks
You can use ChartDataClicked Event to handle when the user clicks on the datapoint. If you change the data, you should call:
ultraChart1.InvalidateLayers();
after that.
For now we don't have event that is raised when the user clicks on the axis labels.
Can you please suggest any work around if possible to identify click on X axis labels.
From this link http://forums.infragistics.com/forums/t/4740.aspx I observed there is something called PCaps.HitTest (not sure if it helps) for each text primitive. I tried the code sample presented but it fails as it treats every primitive same because the row and column values are always coming as -1 during that event.
Is there anything in the latest version that helps with this?
Mark
Thanks, it got me all the way there...
This is loosely related (I was wanting to identify the label clicks so I could manually display tooltips using the UltraWinTooltip control) - but the logic is similar, and you will atleast be able to identify clicks/mouse overs on labels.
http://forums.infragistics.com/forums/t/24452.aspx
The problem will be that unless there is something in the label string itself that is unique, you may not be able to link that back to the datapoint itself. You can't even distinguish programmatically between X and Y axis labels...sigh (well, this is chart dependent - I could because the X axis values were percentages - so I looked for % in the label strings).
IAC, this might get you halfway there?