I want to allow the user to interact with the y-axis labels. For example, they might be able to right-click an axis label to get a context menu for a particular axis. Ultimately, I want to try to implement functionality that allows the user to click and drag a y axis up or down to effectively change the range of the axis.
I've tried to wire up mouse events to the NumericYAxis but that doesn't seem to work.
Any thoughts on how I can hook up event handlers for when the user interacts with the y-axis labels?
Thanks!
You can retemplate the labels by setting the Label property on the axis. This should enable you to hook up events to the controls used for the labels. That help?
-Graham
By setting the Label property, I mean setting it to a DataTemplate.
Hi Graham. Is this also applicable to igDataChart for Javascript? If so, are there any examples available?
Ryan,
This would be a better question to post in the Ignite UI for JavaScript forum. That being said there currently isn't an easy way to do this with the igDataChart at the moment. You may be able to tell where someone clicked along the axis with some application code but that wouldn't tell you if you precisely hit a label. To determine if you hit a label would likely require a new feature request. If you do have further questions on the igDataChart, please post them in the Ignite UI for JavaScript forum.