But I do seem to have a problem....
Sometimes my X axis uses the Logarithmic scale mode, and sometimes Numeric scale mode. If I use Numeric it all works fine. But if I use the Logarithmic, the XAxisValue never seems to change in the DataCursorChanged event - what it gives me for X is the log of the Max value on the X axis.
I am setting the Min value to 30 and the Max to 300 for the X axis. I have tried setting the scalemode before setting the min and max, and after. No difference. This is all done in code, not at design time. This is probably me, but it is all pretty simple, so I can't see the problem. Any suggestions welcome.
[Added later] I've just tried setting the DataCursorTool up at design time, and only attaching the handler for the DataCursorChanged event at runtime. Same result. The order in which things are done is this:
1. Create an instance of the form containing the chart object
2. Set the axis bounds and scaletype (depends on data)
3. Show the form
4. In the Load event for the form, attach a handler for the DataCursorChanged event of the DataCursorTool.
I have also tried setting the scalemode and axis bounds at design time instead of in code, but that doesn't help either.