Class FunnelSegment
Represents a chart segment which renders collection of points using funnel shape.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class FunnelSegment : ChartSegment, INotifyPropertyChanged
Constructors
FunnelSegment()
Initializes a new instance of the FunnelSegment.
Declaration
public FunnelSegment()
FunnelSegment(Double, Double, FunnelSeries, Boolean)
Initializes a new instance of the FunnelSegment.
Declaration
public FunnelSegment(double y, double height, FunnelSeries funnelSeries, bool isExploded)
Parameters
Type | Name | Description |
---|---|---|
System.Double | y | Used to specify the segment y position. |
System.Double | height | Height of the funnel. |
FunnelSeries | funnelSeries | Used to specify the FunnelSeries instance. |
System.Boolean | isExploded | Used to specify the segment IsExploded or not. |
FunnelSegment(Double, Double, Double, Double, FunnelSeries, Boolean)
Initializes a new instance of the FunnelSegment.
Declaration
public FunnelSegment(double y, double height, double widthTop, double widthBottom, FunnelSeries funnelSeries, bool isExploded)
Parameters
Type | Name | Description |
---|---|---|
System.Double | y | Used to specify the segment y position. |
System.Double | height | Height of the funnel. |
System.Double | widthTop |
|
System.Double | widthBottom |
|
FunnelSeries | funnelSeries | Used to specify the FunnelSeries instance. |
System.Boolean | isExploded | Used to specify the segment IsExploded or not. |
Properties
IsExploded
Gets or sets a value indicating whether this segment is exploded in the user interface (UI).
Declaration
public bool IsExploded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
XData
Gets or sets the data point value, which is used to bind with x value for this segment.
Declaration
public double XData { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A data point value, which is used to bind with x value of the segment. |
YData
Gets or sets the data point value, which is used to bind with y value for this segment.
Declaration
public double YData { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A data point value, which is used to bind with y value of the segment. |
Methods
CreateVisual(Size)
Used for creating UIElement for rendering this segment. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class.
Declaration
public override UIElement CreateVisual(Size size)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | size | Size of the panel |
Returns
Type | Description |
---|---|
System.Windows.UIElement | returns UIElement |
Overrides
GetRenderedVisual()
Gets the UIElement used for rendering this segment.
Declaration
public override UIElement GetRenderedVisual()
Returns
Type | Description |
---|---|
System.Windows.UIElement | returns UIElement |
Overrides
OnSizeChanged(Size)
Called whenever the segment's size changed. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class.
Declaration
public override void OnSizeChanged(Size size)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | size | Size of the panel. |
Overrides
SetData(Double[])
Sets the values for this segment. This method is not intended to be called explicitly outside the Chart but it can be overridden by any derived class.
Declaration
public override void SetData(params double[] Values)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | Values | Used to specify the segment values. |
Overrides
SetVisualBindings(Shape)
Method Implementation for set binding to ChartSegments properties.
Declaration
protected override void SetVisualBindings(Shape element)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Shapes.Shape | element | System.Windows.Shapes.Shape element to be bind. |
Overrides
Update(IChartTransformer)
Updates the segments based on its data point value. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class.
Declaration
public override void Update(IChartTransformer transformer)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.UI.Xaml.Charts.IChartTransformer | transformer | Reresents the view port of chart control.(refer Syncfusion.UI.Xaml.Charts.IChartTransformer) |