WPF Charting Documentation - SciChart WPF Charts SDK v5.x
VerticalSliceModifier Class
Members  Example 
The VerticalSliceModifier provides drawing of vertical slices based on collection of SciChart.Charting.Visuals.Annotations.VerticalLineAnnotation Add to a SciChart.Charting.Visuals.SciChartSurface and set VerticalLines collection to enable this behaviour
Object Model
VerticalSliceModifier ClassIChartModifierSurface InterfaceISciChartSurface InterfaceIAnnotationCanvas InterfaceAnnotationCollection ClassIAnnotation InterfaceIAnnotationCanvas InterfaceIChartModifier InterfaceIGridLinesPanel InterfaceIChartModifierSurface InterfaceIRenderSurface InterfaceIMainGrid InterfaceIServiceContainer InterfaceIViewportManager InterfaceAxisCollection ClassIAxis InterfaceIAxis InterfaceAxisCollection ClassIAxis InterfaceIAxis InterfaceIZoomHistoryManager InterfaceIMainGrid InterfaceChartDataObject ClassIServiceContainer InterfaceVerticalLineAnnotationCollection ClassVerticalLineAnnotation ClassIAxis InterfaceIRange InterfaceIRange InterfaceILabelProvider InterfaceIAnnotationCanvas InterfaceISciChartSurfaceBase InterfaceIServiceContainer InterfaceITickProvider InterfaceIRange InterfaceIRange InterfaceIAxis InterfaceIRange InterfaceIRange InterfaceILabelProvider InterfaceIAnnotationCanvas InterfaceISciChartSurfaceBase InterfaceIServiceContainer InterfaceITickProvider InterfaceIRange InterfaceIRange Interface
Syntax
Example
Shows how to assign a VerticalSliceModifier to a SciChartSurface in XAMLShows how to assign a VerticalSliceModifier to a SciChartSurface in C#
<s:SciChartSurface>
 
<!-- XAxis, YAxis, RenderableSeries omitted for brevity -->
 
    <s:SciChartSurface.ChartModifier>
        <s:ModifierGroup>
            <s:VerticalSliceModifier Name="sliceModifier">
                <s:VerticalSliceModifier.VerticalLines>
                    <s:VerticalLineAnnotation X1="1" />
                    <s:VerticalLineAnnotation X1="3" />
                    <s:VerticalLineAnnotation X1="5" />
                    <s:VerticalLineAnnotation X1="7" />
                    <s:VerticalLineAnnotation X1="9" />
                </s:VerticalSliceModifier.VerticalLines>
            </s:VerticalSliceModifier>
        </s:ModifierGroup>
    </s:SciChartSurface.ChartModifier>
</s:SciChartSurface>
var sciChartSurface = new SciChartSurface();
sciChartSurface.XAxis = new NumericAxis();
sciChartSurface.YAxis = new NumericAxis();
var verticalSliceModifier = new VerticalSliceModifier();
verticalSliceModifier.VerticalLines.Add(new VerticalLineAnnotation() { X1 = 1 } );
verticalSliceModifier.VerticalLines.Add(new VerticalLineAnnotation() { X1 = 3 } );
sciChartSurface.ChartModifier = new ModifierGroup(verticalSliceModifier);
Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     System.Windows.Controls.ContentControl
                        SciChart.Charting.ChartModifiers.ApiElementBase
                           SciChart.Charting.ChartModifiers.ChartModifierBase
                              SciChart.Charting.ChartModifiers.InspectSeriesModifierBase
                                 SciChart.Charting.ChartModifiers.TooltipModifierBase
                                    SciChart.Charting.ChartModifiers.VerticalSliceModifierBase
                                       SciChart.Charting.ChartModifiers.VerticalSliceModifier

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

VerticalSliceModifier Members
SciChart.Charting.ChartModifiers Namespace
RolloverModifier Class
TooltipModifier Class
VerticalSliceModifier Class
TooltipModifier Class

 

 


SCICHART ® is a Registered Trademark in the UK, US and EU. Copyright SciChart Ltd 2011-2018.

Send Feedback