Pre loader

Showing another value bound to current X axis

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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 Zadereckiy
    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 Zadereckiy
    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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies