Class FunnelSeries
Funnel chart is a single series chart representing the data as portions of 100%.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class FunnelSeries : TriangularSeriesBase, ICloneable, ISegmentSelectable
Remarks
FunnelSeries does not have any axis. The segments in FunnelSeries can be explode to a certain distance from the center using ExplodeIndex property.
Examples
<syncfusion:FunnelSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value">
</syncfusion:FunnelSeries>
FunnelSeries series1 = new FunnelSeries();
series1.ItemsSource = viewmodel.Data;
series1.XBindingPath = "Year";
series1.YBindingPath = "Value";
chart.Series.Add(series1);
Constructors
FunnelSeries()
Constructor
Declaration
public FunnelSeries()
Fields
FunnelModeProperty
The DependencyProperty for FunnelMode property.
Declaration
public static readonly DependencyProperty FunnelModeProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
MinWidthProperty
The DependencyProperty for MinWidth property.
Declaration
public static readonly DependencyProperty MinWidthProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty |
Properties
FunnelMode
Gets or sets a value indicating whether the y value should interpret the height or width of the funnel block.
Declaration
public ChartFunnelMode FunnelMode { get; set; }
Property Value
Type | Description |
---|---|
ChartFunnelMode | Default value is ValueIsHeight. |
MinWidth
Gets or sets the minimum width for the funnel block.
Declaration
public double MinWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Default value is 40. |
Methods
CloneSeries(DependencyObject)
Returns the instance of FunnelSeries series.
Declaration
protected override DependencyObject CloneSeries(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | object |
Returns
Type | Description |
---|---|
Windows.UI.Xaml.DependencyObject |
Overrides
CreateAdornment(AdornmentSeries, Double, Double, Double, Double)
Creates the adornment of FunnelSeries.
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 | Description |
---|---|
ChartAdornment |
Overrides
CreateSegment()
Creates an instance of series segment.
Declaration
protected override ChartSegment CreateSegment()
Returns
Type | Description |
---|---|
ChartSegment | Returns the instance of corresponding series segment. |
Overrides
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 segments of FunnelSeries.
Declaration
public override void CreateSegments()
Overrides
CreateTransformer(Size, Boolean)
Return IChartTranform value based upon the given size.
Declaration
protected override IChartTransformer CreateTransformer(Size size, bool create)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Size | size | |
System.Boolean | create |
Returns
Type | Description |
---|---|
Syncfusion.UI.Xaml.Charts.IChartTransformer |
Overrides
SetExplodeIndex(Int32)
Method implementation for ExplodeIndex.
Declaration
protected override void SetExplodeIndex(int i)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i |