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' #(1)!
baseratio: 'number' #(2)!
customdata: 'array' #(3)!
customdatasrc: 'string' #(4)!
dlabel: 'number' #(5)!
domain:
  column: 'integer' #(6)!
  row: 'integer' #(7)!
  x: 'array' #(8)!
  y: 'array' #(9)!
hoverinfo: 'array' #(10)!
hoverinfosrc: 'string' #(11)!
hoverlabel:
  align: 'array' #(12)!
  alignsrc: 'string' #(13)!
  bgcolor: 'color | array' #(14)!
  bgcolorsrc: 'string' #(15)!
  bordercolor: 'color | array' #(16)!
  bordercolorsrc: 'string' #(17)!
  font:
    color: color | array
    colorsrc: 'string' #(18)!
    family: 'string | array' #(19)!
    familysrc: 'string' #(20)!
    lineposition: 'array' #(21)!
    linepositionsrc: 'string' #(22)!
    shadow: 'string | array' #(23)!
    shadowsrc: 'string' #(24)!
    size: number | array
    sizesrc: 'string' #(25)!
    style: 'array' #(26)!
    stylesrc: 'string' #(27)!
    textcase: 'array' #(28)!
    textcasesrc: 'string' #(29)!
    variant: 'array' #(30)!
    variantsrc: 'string' #(31)!
    weight: 'integer | array' #(32)!
    weightsrc: 'string' #(33)!
  namelength: 'integer | array' #(34)!
  namelengthsrc: 'string' #(35)!
hovertemplate: 'string | array' #(36)!
hovertemplatesrc: 'string' #(37)!
hovertext: 'string | array' #(38)!
hovertextsrc: 'string' #(39)!
ids: 'array' #(40)!
idssrc: 'string' #(41)!
insidetextfont:
  color: color | array
  colorsrc: 'string' #(42)!
  family: 'string | array' #(43)!
  familysrc: 'string' #(44)!
  lineposition: 'array' #(45)!
  linepositionsrc: 'string' #(46)!
  shadow: 'string | array' #(47)!
  shadowsrc: 'string' #(48)!
  size: number | array
  sizesrc: 'string' #(49)!
  style: 'array' #(50)!
  stylesrc: 'string' #(51)!
  textcase: 'array' #(52)!
  textcasesrc: 'string' #(53)!
  variant: 'array' #(54)!
  variantsrc: 'string' #(55)!
  weight: 'integer | array' #(56)!
  weightsrc: 'string' #(57)!
label0: 'number' #(58)!
labels: 'array' #(59)!
labelssrc: 'string' #(60)!
legend: 'string' #(61)!
legendgroup: 'string' #(62)!
legendgrouptitle:
  font:
    color: any
    family: 'string' #(63)!
    lineposition: 'string' #(64)!
    shadow: 'string' #(65)!
    size: number
    style: 'any' #(66)!
    textcase: 'any' #(67)!
    variant: 'any' #(68)!
    weight: 'integer' #(69)!
  text: 'string' #(70)!
legendrank: 'number' #(71)!
legendwidth: 'number' #(72)!
marker:
  colors: 'array' #(73)!
  colorssrc: 'string' #(74)!
  line:
    color: 'color | array' #(75)!
    colorsrc: 'string' #(76)!
    width: 'number | array' #(77)!
    widthsrc: 'string' #(78)!
  pattern:
    bgcolor: 'color | array' #(79)!
    bgcolorsrc: 'string' #(80)!
    fgcolor: 'color | array' #(81)!
    fgcolorsrc: 'string' #(82)!
    fgopacity: 'number' #(83)!
    fillmode: 'any' #(84)!
    shape: 'array' #(85)!
    shapesrc: 'string' #(86)!
    size: 'number | array' #(87)!
    sizesrc: 'string' #(88)!
    solidity: 'number | array' #(89)!
    soliditysrc: 'string' #(90)!
metasrc: 'string' #(91)!
name: 'string' #(92)!
opacity: 'number' #(93)!
scalegroup: 'string' #(94)!
showlegend: 'boolean' #(95)!
stream:
  maxpoints: 'number' #(96)!
  token: 'string' #(97)!
text: 'array' #(98)!
textfont:
  color: color | array
  colorsrc: 'string' #(99)!
  family: 'string | array' #(100)!
  familysrc: 'string' #(101)!
  lineposition: 'array' #(102)!
  linepositionsrc: 'string' #(103)!
  shadow: 'string | array' #(104)!
  shadowsrc: 'string' #(105)!
  size: number | array
  sizesrc: 'string' #(106)!
  style: 'array' #(107)!
  stylesrc: 'string' #(108)!
  textcase: 'array' #(109)!
  textcasesrc: 'string' #(110)!
  variant: 'array' #(111)!
  variantsrc: 'string' #(112)!
  weight: 'integer | array' #(113)!
  weightsrc: 'string' #(114)!
textinfo: 'string' #(115)!
textposition: 'array' #(116)!
textpositionsrc: 'string' #(117)!
textsrc: 'string' #(118)!
texttemplate: 'string | array' #(119)!
texttemplatesrc: 'string' #(120)!
title:
  font:
    color: color | array
    colorsrc: 'string' #(121)!
    family: 'string | array' #(122)!
    familysrc: 'string' #(123)!
    lineposition: 'array' #(124)!
    linepositionsrc: 'string' #(125)!
    shadow: 'string | array' #(126)!
    shadowsrc: 'string' #(127)!
    size: number | array
    sizesrc: 'string' #(128)!
    style: 'array' #(129)!
    stylesrc: 'string' #(130)!
    textcase: 'array' #(131)!
    textcasesrc: 'string' #(132)!
    variant: 'array' #(133)!
    variantsrc: 'string' #(134)!
    weight: 'integer | array' #(135)!
    weightsrc: 'string' #(136)!
  position: 'any' #(137)!
  text: 'string' #(138)!
type: funnelarea
uid: 'string' #(139)!
values: 'array' #(140)!
valuessrc: 'string' #(141)!
visible: 'any' #(142)!
  1. Sets the ratio between height and width
  2. Sets the ratio between bottom length and maximum top length.
  3. Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, scatter traces also appends customdata items in the markers DOM elements
  4. Sets the source reference on Chart Studio Cloud for customdata.
  5. Sets the label step. See label0 for more info.
  6. If there is a layout grid, use the domain for this column in the grid for this funnelarea trace .
  7. If there is a layout grid, use the domain for this row in the grid for this funnelarea trace .
  8. Sets the horizontal domain of this funnelarea trace (in plot fraction).
  9. Sets the vertical domain of this funnelarea trace (in plot fraction).
  10. Determines which trace information appear on hover. If none or skip are set, no information is displayed upon hovering. But, if none is set, click and hover events are still fired.
  11. Sets the source reference on Chart Studio Cloud for hoverinfo.
  12. Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines
  13. Sets the source reference on Chart Studio Cloud for align.
  14. Sets the background color of the hover labels for this trace
  15. Sets the source reference on Chart Studio Cloud for bgcolor.
  16. Sets the border color of the hover labels for this trace.
  17. Sets the source reference on Chart Studio Cloud for bordercolor.
  18. Sets the source reference on Chart Studio Cloud for color.
  19. 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.
  20. Sets the source reference on Chart Studio Cloud for family.
  21. Sets the kind of decoration line(s) with text, such as an under, over or through as well as combinations e.g. under+over, etc.
  22. Sets the source reference on Chart Studio Cloud for lineposition.
  23. 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.
  24. Sets the source reference on Chart Studio Cloud for shadow.
  25. Sets the source reference on Chart Studio Cloud for size.
  26. Sets whether a font should be styled with a normal or italic face from its family.
  27. Sets the source reference on Chart Studio Cloud for style.
  28. Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
  29. Sets the source reference on Chart Studio Cloud for textcase.
  30. Sets the variant of the font.
  31. Sets the source reference on Chart Studio Cloud for variant.
  32. Sets the weight (or boldness) of the font.
  33. Sets the source reference on Chart Studio Cloud for weight.
  34. Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to namelength - 3 characters and add an ellipsis.
  35. Sets the source reference on Chart Studio Cloud for namelength.
  36. 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>.
  37. Sets the source reference on Chart Studio Cloud for hovertemplate.
  38. 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.
  39. Sets the source reference on Chart Studio Cloud for hovertext.
  40. Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
  41. Sets the source reference on Chart Studio Cloud for ids.
  42. Sets the source reference on Chart Studio Cloud for color.
  43. 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.
  44. Sets the source reference on Chart Studio Cloud for family.
  45. Sets the kind of decoration line(s) with text, such as an under, over or through as well as combinations e.g. under+over, etc.
  46. Sets the source reference on Chart Studio Cloud for lineposition.
  47. 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.
  48. Sets the source reference on Chart Studio Cloud for shadow.
  49. Sets the source reference on Chart Studio Cloud for size.
  50. Sets whether a font should be styled with a normal or italic face from its family.
  51. Sets the source reference on Chart Studio Cloud for style.
  52. Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
  53. Sets the source reference on Chart Studio Cloud for textcase.
  54. Sets the variant of the font.
  55. Sets the source reference on Chart Studio Cloud for variant.
  56. Sets the weight (or boldness) of the font.
  57. Sets the source reference on Chart Studio Cloud for weight.
  58. Alternate to labels. Builds a numeric set of labels. Use with dlabel where label0 is the starting label and dlabel the step.
  59. Sets the sector labels. If labels entries are duplicated, we sum associated values or simply count occurrences if values is not provided. For other array attributes (including color) we use the first non-empty entry among all occurrences of the label.
  60. Sets the source reference on Chart Studio Cloud for labels.
  61. Sets the reference to a legend to show this trace in. References to these legends are legend, legend2, legend3, etc. Settings for these legends are set in the layout, under layout.legend, layout.legend2, etc.
  62. 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.
  63. 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.
  64. Sets the kind of decoration line(s) with text, such as an under, over or through as well as combinations e.g. under+over, etc.
  65. 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.
  66. Sets whether a font should be styled with a normal or italic face from its family.
  67. Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
  68. Sets the variant of the font.
  69. Sets the weight (or boldness) of the font.
  70. Sets the title of the legend group.
  71. Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with reversed legend.traceorder they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.
  72. Sets the width (in px or fraction) of the legend for this trace.
  73. Sets the color of each sector. If not specified, the default trace color set is used to pick the sector colors.
  74. Sets the source reference on Chart Studio Cloud for colors.
  75. Sets the color of the line enclosing each sector. Defaults to the paper_bgcolor value.
  76. Sets the source reference on Chart Studio Cloud for color.
  77. Sets the width (in px) of the line enclosing each sector.
  78. Sets the source reference on Chart Studio Cloud for width.
  79. When there is no colorscale sets the color of background pattern fill. Defaults to a marker.color background when fillmode is overlay. Otherwise, defaults to a transparent background.
  80. Sets the source reference on Chart Studio Cloud for bgcolor.
  81. When there is no colorscale sets the color of foreground pattern fill. Defaults to a marker.color background when fillmode is replace. Otherwise, defaults to dark grey or white to increase contrast with the bgcolor.
  82. Sets the source reference on Chart Studio Cloud for fgcolor.
  83. Sets the opacity of the foreground pattern fill. Defaults to a 0.5 when fillmode is overlay. Otherwise, defaults to 1.
  84. Determines whether marker.color should be used as a default to bgcolor or a fgcolor.
  85. Sets the shape of the pattern fill. By default, no pattern is used for filling the area.
  86. Sets the source reference on Chart Studio Cloud for shape.
  87. Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern.
  88. Sets the source reference on Chart Studio Cloud for size.
  89. Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern.
  90. Sets the source reference on Chart Studio Cloud for solidity.
  91. Sets the source reference on Chart Studio Cloud for meta.
  92. Sets the trace name. The trace name appears as the legend item and on hover.
  93. Sets the opacity of the trace.
  94. 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.
  95. Determines whether or not an item corresponding to this trace is shown in the legend.
  96. Sets the maximum number of points to keep on the plots from an incoming stream. If maxpoints is set to 50, only the newest 50 points will be displayed on the plot.
  97. The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details.
  98. Sets text elements associated with each sector. If trace textinfo contains a text flag, these elements will be seen on the chart. If trace hoverinfo contains a text flag and hovertext is not set, these elements will be seen in the hover labels.
  99. Sets the source reference on Chart Studio Cloud for color.
  100. 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.
  101. Sets the source reference on Chart Studio Cloud for family.
  102. Sets the kind of decoration line(s) with text, such as an under, over or through as well as combinations e.g. under+over, etc.
  103. Sets the source reference on Chart Studio Cloud for lineposition.
  104. 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.
  105. Sets the source reference on Chart Studio Cloud for shadow.
  106. Sets the source reference on Chart Studio Cloud for size.
  107. Sets whether a font should be styled with a normal or italic face from its family.
  108. Sets the source reference on Chart Studio Cloud for style.
  109. Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
  110. Sets the source reference on Chart Studio Cloud for textcase.
  111. Sets the variant of the font.
  112. Sets the source reference on Chart Studio Cloud for variant.
  113. Sets the weight (or boldness) of the font.
  114. Sets the source reference on Chart Studio Cloud for weight.
  115. Determines which trace information appear on the graph.
  116. Specifies the location of the textinfo.
  117. Sets the source reference on Chart Studio Cloud for textposition.
  118. Sets the source reference on Chart Studio Cloud for text.
  119. 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.
  120. Sets the source reference on Chart Studio Cloud for texttemplate.
  121. Sets the source reference on Chart Studio Cloud for color.
  122. 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.
  123. Sets the source reference on Chart Studio Cloud for family.
  124. Sets the kind of decoration line(s) with text, such as an under, over or through as well as combinations e.g. under+over, etc.
  125. Sets the source reference on Chart Studio Cloud for lineposition.
  126. 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.
  127. Sets the source reference on Chart Studio Cloud for shadow.
  128. Sets the source reference on Chart Studio Cloud for size.
  129. Sets whether a font should be styled with a normal or italic face from its family.
  130. Sets the source reference on Chart Studio Cloud for style.
  131. Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
  132. Sets the source reference on Chart Studio Cloud for textcase.
  133. Sets the variant of the font.
  134. Sets the source reference on Chart Studio Cloud for variant.
  135. Sets the weight (or boldness) of the font.
  136. Sets the source reference on Chart Studio Cloud for weight.
  137. Specifies the location of the title.
  138. Sets the title of the chart. If it is empty, no title is displayed.
  139. Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
  140. Sets the values of the sectors. If omitted, we count occurrences of each label.
  141. Sets the source reference on Chart Studio Cloud for values.
  142. Determines whether or not this trace is visible. If legendonly, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible).