SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

0
0

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

  • You must to post comments
0
0

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

  • Marcel
    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
  • Yuriy
    How about showing it on axis? CursorModifier has AxisLabelTemplate property - maybe it will be better choice in your case. Yuriy
  • Marcel
    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
  • Yuriy
    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 to post comments
Showing 1 result
Your Answer

Please first to submit.