# Funnel Charts with FlexChart

Learn how to create funnel charts using FlexChart component in this documentation topic

## Content

Funnel charts show values along multiple stages in a process.
For example, you could use a funnel chart to show the number of sales prospects at each stage in a sales pipeline. Typically, the values decrease gradually, making the bars resemble a funnel. They can also be useful in identifying potential problem areas in an organization's sales processes.

To create funnel charts with the FlexChart control, set the __bindingX__ property to the name of the property that contains the step along the pipeline, and add a single series with __binding__ set to the amount of transactions at the given step.

You can adjust the funnel's height, width, and style using the options property.

* __funnel.neckWidth__: Specifies the neck width as a percentage for the Funnel chart. The default value is 0.2.
* __funnel.neckHeight__: Specifies the neck height as a percentage for the Funnel chart. The default value is 0.
* __funnel.type__: Specifies the type of Funnel chart. It should be 'rectangle' or 'default'. neckWidth and neckHeight don't work if type is set to rectangle.

Example:

```JavaScript
import * as chart from '@mescius/wijmo.chart';

var myChart = new chart.FlexChart('#myChart', {
    chartType: wijmo.chart.ChartType.Funnel,
    bindingX: 'country',
    series: [
        { name: 'Sales', binding: 'sales' }
    ],
    dataLabel: { content: '{y}' },
    options: {
        funnel: {
            neckWidth: 0.2,
            neckHeight: 0.2,
            type: 'default'
        }
    }
});
```
![Default Funnel Chart](https://cdn.mescius.io/document-site-files/images/3c7113e2-10b3-45ed-8f3b-9fb1e0af2b74/chart/chart-funnel-default.png)

The following is what the 'rectangle' funnel chart looks like.

```JavaScript
myChart.options.funnel.type = 'rectangle';
```

![Rectangle Funnel Chart](https://cdn.mescius.io/document-site-files/images/3c7113e2-10b3-45ed-8f3b-9fb1e0af2b74/chart/chart-funnel-rectangle.png)