# FunnelSeries2D.HeightToWidthRatio Property

Gets or sets a value that specifies the height-to-width ratio of a Funnel Series series.

Namespace:DevExpress.Xpf.Charts
Assembly:DevExpress.Xpf.Charts.v19.2.dll

## Syntax

#### Property value

Type: Double
A double value that specifies the height-to-width ratio of a funnel.

## Remarks

Use the HeightToWidthRatio property to manually set the height-to-width ratio of a Funnel series. To enable auto-calculation of this ratio, use the HeightToWidthRatioAuto property.

The following images demonstrate the HeightToWidthRatio property in action.

HeightToWidthRatioAuto = true

HeightToWidthRatioAuto = false

HeightToWidthRatio = 2

## Example

This example demonstrates how to create a 2D Funnel chart.

1. Create a ChartControl (see ChartControl) and set its ChartControl.Diagram property to a SimpleDiagram2D (see SimpleDiagram2D) object.

Note

Note that the ChartControl.Diagram is a content property. You can declare a diagram in XAML directly after a chart control's declaration without wrapping it in opening and closing ChartControl.Diagram tags.

2. Add a FunnelSeries2D (see FunnelSeries2D) object to the Diagram.Series collection.

Note

Note that the Diagram.Series is a content property. You can declare series in XAML directly after a diagram's declaration without wrapping them in opening and closing Diagram.Series tags.

Use the following properties to bind the Series to data:

3. Set the Series.LegendTextPattern property to "{}{A}: {V}" to show a point argument with a corresponding value for each point in the legend.

4. Enable the Series.LabelsVisibility property to display the series labels. Set the SeriesLabel.TextPattern property to "{}{VP:##.##%}" to show a point's percentage value in each series label.

5. To change the funnel height's ratio to its width, disable the HeightToWidthRatioAuto property and define HeightToWidthRatio.

You can optionally add a chart title and change the legend's position.