Hello all and good morning,
I have a normal graph with values on the x axis. in the data structure each of this x values has also a time.
Can you help me finding the best approach for this?
the request is to include this value in the rollover tool tip, but maybe I can also accomplish this with an event for a mouse button (hit test) finding the closest x value and return the time right? how would you show this value in the graph like a tooltip or something temporary?
Thank you very much for your comment and ideas.
Marcel
- Marcel asked 11 years ago
- You must login to post comments
Hi Marcel,
I think you could have hidden CursorModifier(CrosshairsStyle=”{x:Null}”) with ExecuteOn=”MouseLeftButton” and ReceiveHandledEvents=”True”(allows cursor to work together with other modifiers). Than you should configure CursorLabelTemplate to show appropriate values, and tooltip will appear every time when mouse left button is pressed.
What do you think? Does this make sense?
Best regards,
Yuriy
- Yuriy Zadereckiy answered 11 years ago
-
Thank you for feedback Yuriy I will try. Im not sure yet , seems to make sense :)) Customer requested again that should be without pressing any button, Im not sure if that is really impossible. Maybe putting those values in another series hidden, and then somehow bind to the Xvalue of this hidden series. Well I try this one and we will see :) best regards
-
How about showing it on axis? CursorModifier has AxisLabelTemplate property - maybe it will be better choice in your case. Yuriy
-
Thank you again Yuriy, yes that sounds like a better solution, but the question is how I bind to this other value in AxisLabelTemplate because its not on the series. Or maybe Im overseeing this problem: DataSeries is and plotted, then for each X value there is an associated time. A 3 dimension graph. Maybe its possible to bind to the result of a method giving the Xvalue as input. Ah maybe with a converter? what do you think? Thank you again for your precious time
-
Hi again, I think you could do that. DataContext for cursor's AxesLabels is an instance of AxisInfo class, which contains the DataValue property. So you could bind this additional X value in AxisLabelTemplate to method via ObjectDataProvider and pass value from the DataValue property as a parameter into it. Please tell if you need any assistance with that. Yuriy
- You must login to post comments
Please login first to submit.