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

Answered
2
0

I’m new to SciCharts, so this might be a terminology issue or something like that.

I’m trying to add a vertical line annotation to my chart that the user can drag around. So far so good. However, I’d like it to also display the values of the series data the line intersects with. This is where I’m unsure of the best way to proceed. What I want is basically the behavior of the RolloverModifier, which displays tooltips when it intersects with series data, but it’s always visible rather than triggered by a rollover. It may be possible to use the RolloverModifier for this, but I ran into an issue where I couldn’t have both a VerticalLineAnnotation with IsEditable=true and a RolloverModifier, and I need to add another VerticalLineAnnotation in addition to this one.

Any advice?

Hopefully I just missed something in the documentation.

  • You must to post comments
Best Answer
4
0

UPDATE

SciChart v3.0 now supports a VerticalSliceModifier, which provides a draggable Vertical line which shows series values as Rollover style tooltips as you drag the line. You can see an example of it in action here:

Series Vertical Slices Example

Images
  • You must to post comments
2
0

Hi there,

Unfortunately, VerticalLineAnnotation doesn’t provide such a feature for now. However, some users have implemented this behavior by themselves, please, take a look at this thread and find the links in the last post.

Hope this helps!

Best regards,
Yuriy

  • smhinsey
    Thanks, I ultimately was able to accomplish this by overriding the OnAnnotationMouse events in a subclass of VerticalLineAnnotation. In those overrides, I run a test that uses the supplied mouse coordinates to run a hit test over the length of the annotation line, on an interval. This seems to work fine and should also work for the HorizontalLineAnnotation and probably the rest as well.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.