Skip to content

Funnelarea

Overview

The funnelarea trace type is used to create funnel area charts, which are similar to funnel charts but are represented as a circular area instead of a linear progression. Funnel area charts are useful for comparing stages in a process with proportional sizes. Each stage is represented as a sector of a circle, and its size represents the magnitude of the data.

You can control the colors, labels, and orientation of the funnel area sections to visualize proportional data across different stages.

Common Uses

  • Proportional Stages: Showing the proportion of data at each stage in a circular format.
  • Conversion Rates: Visualizing the drop-off rates in different stages of a process.
  • Sales and Marketing Funnels: Representing funnels like leads-to-sales in a circular format.

Check out the Attributes for the full set of configuration options

Examples

Common Configurations

Here's a simple funnelarea plot showing data in a circular funnel format:

You can copy this code below to create this chart in your project:

models:
  - name: funnelarea-data
    args:
      - echo
      - |
        stage,value
        Leads,1000
        Qualified Leads,750
        Opportunities,400
        Proposals,200
        Closed Deals,100
traces:
  - name: Simple Funnelarea Plot
    model: ${ref(funnelarea-data)}
    props:
      type: funnelarea
      labels: ?{stage}
      values: ?{value}
charts:
  - name: Simple Funnelarea Chart
    traces:
      - ${ref(Simple Funnelarea Plot)}
    layout:
      title:
        text: Simple Funnelarea Chart<br><sub>Proportional Sales Funnel</sub>

This example shows a funnelarea plot where each stage has a custom color for better differentiation:

Here's the code:

models:
  - name: funnelarea-data-custom
    args:
      - echo
      - |
        stage,value,color
        Awareness,5000,"#1f77b4"
        Interest,3000,"#ff7f0e"
        Consideration,1500,"#2ca02c"
        Decision,700,"#d62728"
        Purchase,300,"#9467bd"
traces:
  - name: Custom Colors Funnelarea Plot
    model: ${ref(funnelarea-data-custom)}
    props:
      type: funnelarea
      labels: ?{stage}
      values: ?{value}
      marker:
        colors: ?{color}
charts:
  - name: Funnelarea Chart with Custom Colors
    traces:
      - ${ref(Custom Colors Funnelarea Plot)}
    layout:
      title:
        text: Funnelarea Chart with Custom Colors<br><sub>User Journey</sub>

This example demonstrates a funnelarea plot with hover information to show the value and percentage for each stage:

Here's the code:

models:
  - name: funnelarea-data-hover
    args:
      - echo
      - |
        stage,value
        Leads,1000
        Opportunities,500
        Proposals,250
        Won,100
traces:
  - name: Funnelarea Plot with Hover Info
    model: ${ref(funnelarea-data-hover)}
    props:
      type: funnelarea
      labels: ?{stage}
      values: ?{value}
      hoverinfo: "label+value+percent"
charts:
  - name: Funnelarea Chart with Hover Info
    traces:
      - ${ref(Funnelarea Plot with Hover Info)}
    layout:
      title:
        text: Funnelarea Chart with Hover Info<br><sub>Sales Funnel with Hover Details</sub>

A schema to validate plotly trace properties

Attributes

These attributes apply to traces where trace.props.type is set to funnelarea. You would configure these attributes on the trace with the trace.props object.

aspectratio: number
baseratio: number
customdata: array
customdatasrc: 'string' #(1)!
dlabel: number
domain:
  column: integer
  row: integer
  x: array
  y: array
hoverinfo: array
hoverinfosrc: 'string' #(2)!
hoverlabel:
  align: array
  alignsrc: 'string' #(3)!
  bgcolor: array
  bgcolorsrc: 'string' #(4)!
  bordercolor: array
  bordercolorsrc: 'string' #(5)!
  font:
    color: array
    colorsrc: 'string' #(6)!
    family: 'string | array' #(7)!
    familysrc: 'string' #(8)!
    lineposition: array
    linepositionsrc: 'string' #(9)!
    shadow: 'string | array' #(10)!
    shadowsrc: 'string' #(11)!
    size: array
    sizesrc: 'string' #(12)!
    style: array
    stylesrc: 'string' #(13)!
    textcase: array
    textcasesrc: 'string' #(14)!
    variant: array
    variantsrc: 'string' #(15)!
    weight: array
    weightsrc: 'string' #(16)!
  namelength: array
  namelengthsrc: 'string' #(17)!
hovertemplate: 'string | array' #(18)!
hovertemplatesrc: 'string' #(19)!
hovertext: 'string | array' #(20)!
hovertextsrc: 'string' #(21)!
ids: array
idssrc: 'string' #(22)!
insidetextfont:
  color: array
  colorsrc: 'string' #(23)!
  family: 'string | array' #(24)!
  familysrc: 'string' #(25)!
  lineposition: array
  linepositionsrc: 'string' #(26)!
  shadow: 'string | array' #(27)!
  shadowsrc: 'string' #(28)!
  size: array
  sizesrc: 'string' #(29)!
  style: array
  stylesrc: 'string' #(30)!
  textcase: array
  textcasesrc: 'string' #(31)!
  variant: array
  variantsrc: 'string' #(32)!
  weight: array
  weightsrc: 'string' #(33)!
label0: number
labels: array
labelssrc: 'string' #(34)!
legend: string
legendgroup: 'string' #(35)!
legendgrouptitle:
  font:
    color: any
    family: 'string' #(36)!
    lineposition: any
    shadow: 'string' #(37)!
    size: number
    style: any
    textcase: any
    variant: any
    weight: integer
  text: 'string' #(38)!
legendrank: number
legendwidth: number
marker:
  colors: array
  colorssrc: 'string' #(39)!
  line:
    color: array
    colorsrc: 'string' #(40)!
    width: array
    widthsrc: 'string' #(41)!
  pattern:
    bgcolor: array
    bgcolorsrc: 'string' #(42)!
    fgcolor: array
    fgcolorsrc: 'string' #(43)!
    fgopacity: number
    fillmode: any
    shape: array
    shapesrc: 'string' #(44)!
    size: array
    sizesrc: 'string' #(45)!
    solidity: array
    soliditysrc: 'string' #(46)!
metasrc: 'string' #(47)!
name: 'string' #(48)!
opacity: number
scalegroup: 'string' #(49)!
showlegend: boolean
stream:
  maxpoints: number
  token: 'string' #(50)!
text: array
textfont:
  color: array
  colorsrc: 'string' #(51)!
  family: 'string | array' #(52)!
  familysrc: 'string' #(53)!
  lineposition: array
  linepositionsrc: 'string' #(54)!
  shadow: 'string | array' #(55)!
  shadowsrc: 'string' #(56)!
  size: array
  sizesrc: 'string' #(57)!
  style: array
  stylesrc: 'string' #(58)!
  textcase: array
  textcasesrc: 'string' #(59)!
  variant: array
  variantsrc: 'string' #(60)!
  weight: array
  weightsrc: 'string' #(61)!
textinfo: any
textposition: array
textpositionsrc: 'string' #(62)!
textsrc: 'string' #(63)!
texttemplate: 'string | array' #(64)!
texttemplatesrc: 'string' #(65)!
title:
  font:
    color: array
    colorsrc: 'string' #(66)!
    family: 'string | array' #(67)!
    familysrc: 'string' #(68)!
    lineposition: array
    linepositionsrc: 'string' #(69)!
    shadow: 'string | array' #(70)!
    shadowsrc: 'string' #(71)!
    size: array
    sizesrc: 'string' #(72)!
    style: array
    stylesrc: 'string' #(73)!
    textcase: array
    textcasesrc: 'string' #(74)!
    variant: array
    variantsrc: 'string' #(75)!
    weight: array
    weightsrc: 'string' #(76)!
  position: any
  text: 'string' #(77)!
type: funnelarea
uid: 'string' #(78)!
values: array
valuessrc: 'string' #(79)!
visible: any
  1. Sets the source reference on Chart Studio Cloud for customdata.
  2. Sets the source reference on Chart Studio Cloud for hoverinfo.
  3. Sets the source reference on Chart Studio Cloud for align.
  4. Sets the source reference on Chart Studio Cloud for bgcolor.
  5. Sets the source reference on Chart Studio Cloud for bordercolor.
  6. Sets the source reference on Chart Studio Cloud for color.
  7. HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.
  8. Sets the source reference on Chart Studio Cloud for family.
  9. Sets the source reference on Chart Studio Cloud for lineposition.
  10. Sets the shape and color of the shadow behind text. auto places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
  11. Sets the source reference on Chart Studio Cloud for shadow.
  12. Sets the source reference on Chart Studio Cloud for size.
  13. Sets the source reference on Chart Studio Cloud for style.
  14. Sets the source reference on Chart Studio Cloud for textcase.
  15. Sets the source reference on Chart Studio Cloud for variant.
  16. Sets the source reference on Chart Studio Cloud for weight.
  17. Sets the source reference on Chart Studio Cloud for namelength.
  18. Template string used for rendering the information that appear on hover box. Note that this will override hoverinfo. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%xother}, {%_xother}, {%xother_}. When showing info for several points, xother will be added to those with different x positions from the first point. An underscore before or after (x|y)other will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in hovertemplate are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are arrayOk: true) are available. Finally, the template string has access to variables label, color, value, text and percent. Anything contained in tag <extra> is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag <extra></extra>.
  19. Sets the source reference on Chart Studio Cloud for hovertemplate.
  20. Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace hoverinfo must contain a text flag.
  21. Sets the source reference on Chart Studio Cloud for hovertext.
  22. Sets the source reference on Chart Studio Cloud for ids.
  23. Sets the source reference on Chart Studio Cloud for color.
  24. HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.
  25. Sets the source reference on Chart Studio Cloud for family.
  26. Sets the source reference on Chart Studio Cloud for lineposition.
  27. Sets the shape and color of the shadow behind text. auto places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
  28. Sets the source reference on Chart Studio Cloud for shadow.
  29. Sets the source reference on Chart Studio Cloud for size.
  30. Sets the source reference on Chart Studio Cloud for style.
  31. Sets the source reference on Chart Studio Cloud for textcase.
  32. Sets the source reference on Chart Studio Cloud for variant.
  33. Sets the source reference on Chart Studio Cloud for weight.
  34. Sets the source reference on Chart Studio Cloud for labels.
  35. Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
  36. HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.
  37. Sets the shape and color of the shadow behind text. auto places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
  38. Sets the title of the legend group.
  39. Sets the source reference on Chart Studio Cloud for colors.
  40. Sets the source reference on Chart Studio Cloud for color.
  41. Sets the source reference on Chart Studio Cloud for width.
  42. Sets the source reference on Chart Studio Cloud for bgcolor.
  43. Sets the source reference on Chart Studio Cloud for fgcolor.
  44. Sets the source reference on Chart Studio Cloud for shape.
  45. Sets the source reference on Chart Studio Cloud for size.
  46. Sets the source reference on Chart Studio Cloud for solidity.
  47. Sets the source reference on Chart Studio Cloud for meta.
  48. Sets the trace name. The trace name appears as the legend item and on hover.
  49. If there are multiple funnelareas that should be sized according to their totals, link them by providing a non-empty group id here shared by every trace in the same group.
  50. The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details.
  51. Sets the source reference on Chart Studio Cloud for color.
  52. HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.
  53. Sets the source reference on Chart Studio Cloud for family.
  54. Sets the source reference on Chart Studio Cloud for lineposition.
  55. Sets the shape and color of the shadow behind text. auto places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
  56. Sets the source reference on Chart Studio Cloud for shadow.
  57. Sets the source reference on Chart Studio Cloud for size.
  58. Sets the source reference on Chart Studio Cloud for style.
  59. Sets the source reference on Chart Studio Cloud for textcase.
  60. Sets the source reference on Chart Studio Cloud for variant.
  61. Sets the source reference on Chart Studio Cloud for weight.
  62. Sets the source reference on Chart Studio Cloud for textposition.
  63. Sets the source reference on Chart Studio Cloud for text.
  64. Template string used for rendering the information text that appear on points. Note that this will override textinfo. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are arrayOk: true) are available. Finally, the template string has access to variables label, color, value, text and percent.
  65. Sets the source reference on Chart Studio Cloud for texttemplate.
  66. Sets the source reference on Chart Studio Cloud for color.
  67. HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.
  68. Sets the source reference on Chart Studio Cloud for family.
  69. Sets the source reference on Chart Studio Cloud for lineposition.
  70. Sets the shape and color of the shadow behind text. auto places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
  71. Sets the source reference on Chart Studio Cloud for shadow.
  72. Sets the source reference on Chart Studio Cloud for size.
  73. Sets the source reference on Chart Studio Cloud for style.
  74. Sets the source reference on Chart Studio Cloud for textcase.
  75. Sets the source reference on Chart Studio Cloud for variant.
  76. Sets the source reference on Chart Studio Cloud for weight.
  77. Sets the title of the chart. If it is empty, no title is displayed.
  78. Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
  79. Sets the source reference on Chart Studio Cloud for values.