FunnelSeries2D Class
Represents a series view of the Funnel type.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v14.2.dll
#Declaration
[TemplatePart(Name = "PART_FunnelPointPath", Type = typeof(Path))]
[TemplatePart(Name = "PART_PointsContainer", Type = typeof(ItemsControl))]
public class FunnelSeries2D :
Series,
ISupportSeriesBorder
#Remarks
The FunnelSeries2D class provides the functionality of a series view of the Funnel type within a chart control.
In addition to the common view settings inherited from the base Series class, the FunnelSeries2D class declares the funnel type specific settings, which allow you to enable the auto-calculation of a funnel's height-to-width ratio (the FunnelSeries2D.HeightToWidthRatio, and FunnelSeries2D.HeightToWidthRatioAuto properties), to control a funnel's alignment with respect to the position of its labels (the FunnelSeries2D.AlignToCenter property), and a funnel's appearance (the FunnelSeries2D.Border and FunnelSeries2D.ActualBorder properties).
For more information, refer to Funnel.
#Examples
The following example demonstrates how to create a 2D Funnel chart.
For this, it's necessary to create a ChartControl, choose a SimpleDiagram2D object as its diagram and put FunnelSeries2D into its SeriesCollection. Each point of a funnel series should contain an argument and a value.
Note that in this sample the label's SeriesLabel.TextPattern and Series.LegendTextPattern properties are set to "{}{A}: {VP: ##.##%}", which allows showing a point's argument and its percentage value separated by a colon. The available placeholders are detailed below.
- {A} - Use it to display a series point's arguments.
- {VP} - Use it to display a series point's values as percent.
- {S} - Use it to display the series name.