Pre loader

Issue with VerticalSliceModifier and LineAnnotation in Relative CoordinateMode

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

Hi,

I am currently adding a Vertical Slice Modifier with just on Vertical Line inside of it.
The idea is to create a vertical cursor to display Y values for a given X value.
As my chart is a real time chart, I don’t want my cursor position changed expect on user interaction, I set to Relative the CoordinateMode property of my Annotation.

<s:VerticalSliceModifier Name="sliceModifier" ShowTooltipOn="Always" IsEnabled="True">
                    <s:VerticalSliceModifier.VerticalLines>
                        <s:VerticalLineAnnotation IsEditable="True" X1="0.5" Stroke="#D62D15" CoordinateMode="Relative"/>
                    </s:VerticalSliceModifier.VerticalLines>
                </s:VerticalSliceModifier>

The vertical line is correctly displayed at the centre of the surface but point markers and tooltips are not displayed at the line position, it seems the relative coordinate mode is not handle on this area.

Thanks for your help
Jean-Charles

Version
6.2.0.13254
Images
  • You must to post comments
0
0

Hi Jean

Interesting issue you’ve found there. I will log this as a bug, however, due to our workload now it will be logged as low priority.

I have a workaround for you though. If you bind X1 property to a property in your viewmodel, and set this to half the XAxis range (e.g. look at XAxis.VisibleRange.Max, Min and find the half way point) you can achieve the same effect but without CoordinateMode.Relative.

Let me know if this helps!

Best regards,
Andrew

  • Jean-Charles DURAND
    Hi Andrew, Thanks for the help. Finally I was able to implement the expected behavior by implementing a custom slice modifier without relative coordinate mode.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.