This example demonstrates how to make a chart show a series point label only for the point that has been hot-tracked.
To do this, in the CustomDrawSeriesPoint event handler, assign an empty string to the LabelText property of each series point, and then assign the point's value to the hot-tracked point, which is obtained in the ObjectHotTracked event handler.
See also:
- How to show a tooltip with a series point's data;
- How to accompany a chart, its pane or series point by text or image annotations.
Question Comments
Added By: Henk Borsje at: 12/12/2014 5:37:22 AM
I'm sorry, but I have no success with your advised code. The event still fires, but the AdditionalObject is always "Nothing".
The Series is properly returned when the mouse is over it, but never a point in the series. I have turned RuntimeHitTesting on and off, all to no avail. What is the secret?
Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T186633: AdditionalHitObject always return nothing. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.