Pre loader

Easy way of selecting distinct time intervals

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

1
0

Hi,

I would like to ask if there is any easy way to select distict time intervals.
I have thought of creating vertical slices on mouse down and up events,
and highlighting the surface between the slices. Is there an easier way
to do this?

Thanks,
Chris

  • You must to post comments
0
0

Hi Kristóf,

Thanks for your enquiry! In SciChart we don’t (currently) have a way to do this but I’m going to give you two solutions:

In SciChart v3.x

You can use our Annotations API to draw on the screen, specifically, take a look at this thread on templating a BoxAnnotation (you can draw any UI you want if you change the template and/or subclass BoxAnnotation).

Next, how to place it on mouse-click? Well, you can either use our own AnnotationCreationModifier, or, you can create a custom ChartModifier. Have a look here at the great tutorials on the chartmodifier API, which allow mouse-input and drawing over the chart.

In SciChart v4.x

Coming soon: we have a new API to create Composite Annotations and we are creating MeasureX, MeasureY and MeasureXY annotations which do exactly this. See a screenshot below.

Best regards,
Andrew

Images
  • 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