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
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!
Please login first to submit.