menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PyramidSeries - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PyramidSeries

    Represents a series which displays data in the form of a triangle with lines dividing it into sections and each section has a different width. Depending on the Y coordinates, this width indicates a level of hierarchy among other categories.

    Inheritance
    System.Object
    ChartSeriesBase
    ChartSeries
    AdornmentSeries
    AccumulationSeriesBase
    TriangularSeriesBase
    PyramidSeries
    Implements
    ICloneable
    ISegmentSelectable
    Inherited Members
    AccumulationSeriesBase.ExplodeAll
    AccumulationSeriesBase.ExplodeAllProperty
    AccumulationSeriesBase.ExplodeIndex
    AccumulationSeriesBase.ExplodeIndexProperty
    AccumulationSeriesBase.ExplodeOnMouseClick
    AccumulationSeriesBase.ExplodeOnMouseClickProperty
    AccumulationSeriesBase.GeneratePoints()
    AccumulationSeriesBase.OnBindingPathChanged(DependencyPropertyChangedEventArgs)
    AccumulationSeriesBase.OnDataSourceChanged(IEnumerable, IEnumerable)
    AccumulationSeriesBase.OnSeriesMouseDown(Object, Point)
    AccumulationSeriesBase.OnSeriesMouseUp(Object, Point)
    AccumulationSeriesBase.SegmentSelectionBrush
    AccumulationSeriesBase.SegmentSelectionBrushProperty
    AccumulationSeriesBase.SelectedIndex
    AccumulationSeriesBase.SelectedIndexChanged(Int32, Int32)
    AccumulationSeriesBase.SelectedIndexProperty
    AccumulationSeriesBase.SelectedSegment
    AccumulationSeriesBase.SelectedSegments
    AccumulationSeriesBase.SetExplodeAll()
    AccumulationSeriesBase.SetExplodeRadius()
    AccumulationSeriesBase.YBindingPath
    AccumulationSeriesBase.YBindingPathProperty
    AccumulationSeriesBase.YValues
    AdornmentSeries.AddAdornmentAtXY(Double, Double, Int32)
    AdornmentSeries.AddAreaAdornments(IList<Double>[])
    AdornmentSeries.AddColumnAdornments(Double[])
    AdornmentSeries.AdornmentLabelCreated
    AdornmentSeries.AdornmentsInfo
    AdornmentSeries.AdornmentsInfoProperty
    AdornmentSeries.ClearUnUsedAdornments(Int32)
    AdornmentSeries.OnApplyTemplate()
    ChartSeries.Area
    ChartSeries.GetDataPointIndex(Double, Double)
    ChartSeries.OnCreateAutomationPeer()
    ChartSeries.Stroke
    ChartSeries.StrokeProperty
    ChartSeries.StrokeThickness
    ChartSeries.StrokeThicknessProperty
    ChartSeriesBase.ActualXAxis
    ChartSeriesBase.ActualXValues
    ChartSeriesBase.ActualYAxis
    ChartSeriesBase.Adornments
    ChartSeriesBase.AnimationDuration
    ChartSeriesBase.AnimationDurationProperty
    ChartSeriesBase.ChartTransformer
    ChartSeriesBase.ClearUnUsedSegments(Int32)
    ChartSeriesBase.Clone()
    ChartSeriesBase.ColorModel
    ChartSeriesBase.ColorModelProperty
    ChartSeriesBase.ColorValues
    ChartSeriesBase.CreateEmptyPointSegments(IList<Double>, List<List<Double>>, List<List<Double>>)
    ChartSeriesBase.DataCount
    ChartSeriesBase.EmptyPointInterior
    ChartSeriesBase.EmptyPointInteriorProperty
    ChartSeriesBase.EmptyPointStyle
    ChartSeriesBase.EmptyPointStyleProperty
    ChartSeriesBase.EmptyPointSymbolTemplate
    ChartSeriesBase.EmptyPointSymbolTemplateProperty
    ChartSeriesBase.EmptyPointValue
    ChartSeriesBase.EmptyPointValueProperty
    ChartSeriesBase.EnableAnimation
    ChartSeriesBase.EnableAnimationProperty
    ChartSeriesBase.FindNearestChartPoint(Point, Double, Double, Double)
    ChartSeriesBase.GeneratePoints(String[], IList<Double>[])
    ChartSeriesBase.GetAvailableSize()
    ChartSeriesBase.GetPreviousSeries(ChartSeriesBase)
    ChartSeriesBase.GetSideBySideInfo(ChartSeriesBase)
    ChartSeriesBase.GetSpacing(DependencyObject)
    ChartSeriesBase.GetXValues()
    ChartSeriesBase.InitialDelayTimer
    ChartSeriesBase.Interior
    ChartSeriesBase.InteriorProperty
    ChartSeriesBase.Invalidate()
    ChartSeriesBase.IsAreaTypeSeries
    ChartSeriesBase.IsBitmapSeries
    ChartSeriesBase.IsColorPathSeries
    ChartSeriesBase.IsIndexed
    ChartSeriesBase.IsLinear
    ChartSeriesBase.IsSeriesVisible
    ChartSeriesBase.IsSeriesVisibleProperty
    ChartSeriesBase.IsSideBySide
    ChartSeriesBase.IsSortData
    ChartSeriesBase.IsSortDataProperty
    ChartSeriesBase.IsStacked
    ChartSeriesBase.IsTooltipAvailable(Canvas)
    ChartSeriesBase.ItemsSource
    ChartSeriesBase.ItemsSourceProperty
    ChartSeriesBase.Label
    ChartSeriesBase.LabelProperty
    ChartSeriesBase.LegendIcon
    ChartSeriesBase.LegendIconProperty
    ChartSeriesBase.LegendIconTemplate
    ChartSeriesBase.LegendIconTemplateProperty
    ChartSeriesBase.ListenPropertyChange
    ChartSeriesBase.ListenPropertyChangeProperty
    ChartSeriesBase.OnDataSourceChanged(DependencyPropertyChangedEventArgs)
    ChartSeriesBase.OnMouseLeave(MouseEventArgs)
    ChartSeriesBase.OnMouseLeftButtonDown(MouseButtonEventArgs)
    ChartSeriesBase.OnMouseLeftButtonUp(MouseButtonEventArgs)
    ChartSeriesBase.OnMouseMove(MouseEventArgs)
    ChartSeriesBase.Palette
    ChartSeriesBase.PaletteProperty
    ChartSeriesBase.Position(Point, ChartTooltip)
    ChartSeriesBase.PropertyChanged
    ChartSeriesBase.ResumeNotification()
    ChartSeriesBase.SegmentColorPath
    ChartSeriesBase.SegmentColorPathProperty
    ChartSeriesBase.Segments
    ChartSeriesBase.SelectedSegmentsIndexes
    ChartSeriesBase.SeriesSelectionBrush
    ChartSeriesBase.SeriesSelectionBrushProperty
    ChartSeriesBase.SetDoubleAnimation(ChartTooltip)
    ChartSeriesBase.SetIndividualDataTablePoint(Int32, Object, Boolean)
    ChartSeriesBase.SetIndividualPoint(Int32, Object, Boolean)
    ChartSeriesBase.SetSpacing(DependencyObject, Double)
    ChartSeriesBase.SetTooltipDuration()
    ChartSeriesBase.ShowEmptyPoints
    ChartSeriesBase.ShowEmptyPointsProperty
    ChartSeriesBase.ShowTooltip
    ChartSeriesBase.ShowTooltipProperty
    ChartSeriesBase.SortBy
    ChartSeriesBase.SortByProperty
    ChartSeriesBase.SortDirection
    ChartSeriesBase.SortDirectionProperty
    ChartSeriesBase.SpacingProperty
    ChartSeriesBase.SuspendNotification()
    ChartSeriesBase.Timer
    ChartSeriesBase.TooltipTemplate
    ChartSeriesBase.TooltipTemplateProperty
    ChartSeriesBase.TrackBallLabelTemplate
    ChartSeriesBase.TrackBallLabelTemplateProperty
    ChartSeriesBase.UpdateArea()
    ChartSeriesBase.UpdateSegments(Int32, NotifyCollectionChangedAction)
    ChartSeriesBase.VisibilityOnLegend
    ChartSeriesBase.VisibilityOnLegendProperty
    ChartSeriesBase.XBindingPath
    ChartSeriesBase.XBindingPathProperty
    ChartSeriesBase.YPaths
    TriangularSeriesBase.ExplodeOffset
    TriangularSeriesBase.ExplodeOffsetProperty
    TriangularSeriesBase.GapRatio
    TriangularSeriesBase.GapRatioProperty
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.WPF.dll
    Syntax
    public class PyramidSeries : TriangularSeriesBase, ICloneable, ISegmentSelectable
    Remarks

    It is a single series, representing data as portions of 100% and does not use any axes.

    Examples
    • MainWindow.xaml
    • MainWindow.cs
    • ViewModel.cs
        <chart:SfChart>
    
             <chart:SfChart.DataContext>
               <local:ViewModel/>
             </chart:SfChart.DataContext>
    
             <chart:PyramidSeries
                  ItemsSource="{Binding Data}"
                  XBindingPath="XValue"
                  YBindingPath="YValue"/>
    
        </chart:SfChart>
        SfChart chart = new SfChart();
    
        ViewModel viewmodel = new ViewModel();
    
        PyramidSeries series = new PyramidSeries();
        series.ItemsSource = viewmodel.Data;
        series.XBindingPath = "XValue";
        series.YBindingPath = "YValue";
        chart.Series.Add(series);
    public ObservableCollection<Model> Data { get; set; }
    
    public ViewModel()
    {
       Data = new ObservableCollection<Model>();
       Data.Add(new Model() { XValue = 10, YValue = 100 });
       Data.Add(new Model() { XValue = 20, YValue = 150 });
       Data.Add(new Model() { XValue = 30, YValue = 110 });
       Data.Add(new Model() { XValue = 40, YValue = 230 });
    }

    Constructors

    PyramidSeries()

    Initializes a new instance of the PyramidSeries class.

    Declaration
    public PyramidSeries()

    Fields

    PyramidModeProperty

    Identifies the PyramidMode dependency property.

    Declaration
    public static readonly DependencyProperty PyramidModeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    The identifier for PyramidMode dependency property.

    Properties

    PyramidMode

    Gets or sets a value indicating whether the y value should interpret the length or surface of the pyramid block.

    Declaration
    public ChartPyramidMode PyramidMode { get; set; }
    Property Value
    Type Description
    ChartPyramidMode

    One of the ChartPyramidMode enumeration values. The default value is Linear

    Methods

    CloneSeries(DependencyObject)

    Returns the instance of PyramidSeries series.

    Declaration
    protected override DependencyObject CloneSeries(DependencyObject obj)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    object

    Returns
    Type
    System.Windows.DependencyObject
    Overrides
    TriangularSeriesBase.CloneSeries(DependencyObject)

    CreateAdornment(AdornmentSeries, Double, Double, Double, Double)

    Creates the adornment of PyramidSeries.

    Declaration
    protected override ChartAdornment CreateAdornment(AdornmentSeries series, double xVal, double yVal, double height, double currY)
    Parameters
    Type Name Description
    AdornmentSeries series
    System.Double xVal
    System.Double yVal
    System.Double height
    System.Double currY
    Returns
    Type
    ChartAdornment
    Overrides
    AdornmentSeries.CreateAdornment(AdornmentSeries, Double, Double, Double, Double)

    CreateSegment()

    Creates an instance of series segment.

    Declaration
    protected override ChartSegment CreateSegment()
    Returns
    Type Description
    ChartSegment

    Returns the instance of corresponding series segment.

    Overrides
    ChartSeries.CreateSegment()
    Remarks

    This customization is not supported for fast type series and technical indicators.

    Examples

    This sample shows how to call the CreateSegment() method to customize the line series segments.

    public class LineSeriesExt : LineSeries
    {​ 
        protected override ChartSegment CreateSegment()
        {​
            return new LineSegmentExt();
        }​
    }​
    
    public class LineSegmentExt : LineSegment
    {​
        public override UIElement CreateVisual(Size size)
        {​
            // Write your customization code here.
        }​
    
        public override void Update(IChartTransformer transformer)
        {​
            // Write your customization code here.
        }​
    }

    CreateSegments()

    Creates the segment of PyramidSeries.

    Declaration
    public override void CreateSegments()
    Overrides
    AdornmentSeries.CreateSegments()

    CreateTransformer(Size, Boolean)

    Return IChartTranform value based upon the given size.

    Declaration
    protected override IChartTransformer CreateTransformer(Size size, bool create)
    Parameters
    Type Name Description
    System.Windows.Size size

    Size of the panel.

    System.Boolean create

    Used to specify whether to create the charttransform for not.

    Returns
    Type Description
    Syncfusion.UI.Xaml.Charts.IChartTransformer

    returns IChartTransformer

    Overrides
    ChartSeriesBase.CreateTransformer(Size, Boolean)

    GetSurfaceHeight(Double, Double)

    To get the SurfaceHeight for PyramidSeries.

    Declaration
    public static double GetSurfaceHeight(double y, double surface)
    Parameters
    Type Name Description
    System.Double y
    System.Double surface
    Returns
    Type
    System.Double

    SetExplodeIndex(Int32)

    Method implementation for ExplodeIndex.

    Declaration
    protected override void SetExplodeIndex(int i)
    Parameters
    Type Name Description
    System.Int32 i

    Exploded segment index.

    Overrides
    AccumulationSeriesBase.SetExplodeIndex(Int32)

    Implements

    ICloneable
    ISegmentSelectable

    See Also

    PyramidSegment
    FunnelSegment
    FunnelSeries
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved