Angular ChartsCone Funnel Series

Version 14.2.0

A Cone Funnel Series illustrates how a value changes during a process, with a line representing the value at each stage and filled areas denoting the change between them.

Simple Cone Funnel Copy Link

To create a Cone Funnel Series, use the cone-funnel series type.

{
    series: [
        {
            type: 'cone-funnel',
            stageKey: 'group',
            valueKey: 'value',
        },
    ],
}

In this configuration:

  • stageKey defines the stages which are used for the lines of the cone funnel.
  • valueKey provides the numerical values which determine the width of line.

Horizontal Cone Funnel Copy Link

To create a horizontal Cone Funnel Series, set the direction to horizontal.

{
    direction: 'horizontal',
}

Customisation Copy Link

{
    fills: ['#5090DC', '#FFA03A', '#459D55'],
}

In this configuration:

  • The fills for each drop off area are defined in the fills array.
  • The Cone Funnel series is reversed by providing the data items in the reverse order.

Labels Copy Link

The values can be displayed along the dividing line using the label option, and the stage names can be shown with the stageLabel option.

{
    label: {
        enabled: true,
        placement: 'middle-center',
    },
    stageLabel: {
        placement: 'before',
    },
}

In this configuration:

  • The label defaults to start-center. Use the dropdown to see all available placements.
    • start and end are the two sides of the dividing line with middle sitting exactly on it.
    • before, center and after position the label along the length of the line.
  • stageLabel.placement positions the stage names on either side of the chart.
  • On a vertical cone funnel, before and after are mirrored when RTL Layout is enabled.

See Series Labels for the full set of label placement and collision avoidance options, and the API Reference for additional customisation options.

Cone Funnel Chart Examples Copy Link

See more Cone Funnel Chart examples in the AG Charts Gallery.

API Reference Copy Link

Properties available on the AgConeFunnelSeriesOptions interface.

type required 'cone-funnel'
Configuration for the Cone Funnel Series.
stageKey required DatumKey
The key to use to retrieve stage values from the data.
valueKey required DatumKey
The key to use to retrieve values from the data.
id string default: auto-generated value
Primary identifier for the series. This is provided as `seriesId` in user callbacks to differentiate multiple series. Auto-generated ids are subject to future change without warning, if your callbacks need to vary behaviour by series please supply your own unique `id` value.
context ContextDefault
Context object to use in callbacks.
data DatumDefault[]
The data to use when rendering the series. If this is not supplied, data must be set on the chart instead.
visible boolean
Whether to display the series.
cursor string
The cursor to use for hovered markers. This config is identical to the CSS `cursor` property.
nodeClickRange InteractionRange
Range from a node that a click triggers the listener.
listeners AgSeriesListeners
A map of event names to event listeners.
fills AgColorType[]
The colours to cycle through for the fills of the drop-offs. An array of colour strings, or fill objects for gradients, patterns, or images.
strokes CssColor[]
The colours to cycle through for the strokes of the drop-offs.
fillOpacity Opacity
The opacity of the fill for the drop-offs.
strokeOpacity Opacity
The opacity of the stroke for the drop-offs.
strokeWidth PixelSize
The width in pixels of the stroke for the drop-offs.
direction 'horizontal' | 'vertical'
Bar rendering direction.
label AgConeFunnelSeriesLabelOptions
Configuration for the labels shown on between drop-offs.
stageLabel AgConeFunnelSeriesStageLabelOptions
Configuration for the stage labels.
tooltip AgSeriesTooltip
Series-specific tooltip configuration.
highlight AgHighlightOptions
Configuration for highlighting when a series or legend item is hovered over.
lineDash PixelSize[]
An array specifying the length in pixels of alternating dashes and gaps.
lineDashOffset PixelSize
The initial offset of the dashed line in pixels.