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
- Sets the source reference on Chart Studio Cloud for
customdata
. - Sets the source reference on Chart Studio Cloud for
hoverinfo
. - Sets the source reference on Chart Studio Cloud for
align
. - Sets the source reference on Chart Studio Cloud for
bgcolor
. - Sets the source reference on Chart Studio Cloud for
bordercolor
. - Sets the source reference on Chart Studio Cloud for
color
. - 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.
- Sets the source reference on Chart Studio Cloud for
family
. - Sets the source reference on Chart Studio Cloud for
lineposition
. - 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.
- Sets the source reference on Chart Studio Cloud for
shadow
. - Sets the source reference on Chart Studio Cloud for
size
. - Sets the source reference on Chart Studio Cloud for
style
. - Sets the source reference on Chart Studio Cloud for
textcase
. - Sets the source reference on Chart Studio Cloud for
variant
. - Sets the source reference on Chart Studio Cloud for
weight
. - Sets the source reference on Chart Studio Cloud for
namelength
. - 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 inhovertemplate
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 arearrayOk: true
) are available. Finally, the template string has access to variableslabel
,color
,value
,text
andpercent
. 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>
. - Sets the source reference on Chart Studio Cloud for
hovertemplate
. - 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. - Sets the source reference on Chart Studio Cloud for
hovertext
. - Sets the source reference on Chart Studio Cloud for
ids
. - Sets the source reference on Chart Studio Cloud for
color
. - 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.
- Sets the source reference on Chart Studio Cloud for
family
. - Sets the source reference on Chart Studio Cloud for
lineposition
. - 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.
- Sets the source reference on Chart Studio Cloud for
shadow
. - Sets the source reference on Chart Studio Cloud for
size
. - Sets the source reference on Chart Studio Cloud for
style
. - Sets the source reference on Chart Studio Cloud for
textcase
. - Sets the source reference on Chart Studio Cloud for
variant
. - Sets the source reference on Chart Studio Cloud for
weight
. - Sets the source reference on Chart Studio Cloud for
labels
. - 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.
- 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.
- 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.
- Sets the title of the legend group.
- Sets the source reference on Chart Studio Cloud for
colors
. - Sets the source reference on Chart Studio Cloud for
color
. - Sets the source reference on Chart Studio Cloud for
width
. - Sets the source reference on Chart Studio Cloud for
bgcolor
. - Sets the source reference on Chart Studio Cloud for
fgcolor
. - Sets the source reference on Chart Studio Cloud for
shape
. - Sets the source reference on Chart Studio Cloud for
size
. - Sets the source reference on Chart Studio Cloud for
solidity
. - Sets the source reference on Chart Studio Cloud for
meta
. - Sets the trace name. The trace name appears as the legend item and on hover.
- 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.
- The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details.
- Sets the source reference on Chart Studio Cloud for
color
. - 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.
- Sets the source reference on Chart Studio Cloud for
family
. - Sets the source reference on Chart Studio Cloud for
lineposition
. - 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.
- Sets the source reference on Chart Studio Cloud for
shadow
. - Sets the source reference on Chart Studio Cloud for
size
. - Sets the source reference on Chart Studio Cloud for
style
. - Sets the source reference on Chart Studio Cloud for
textcase
. - Sets the source reference on Chart Studio Cloud for
variant
. - Sets the source reference on Chart Studio Cloud for
weight
. - Sets the source reference on Chart Studio Cloud for
textposition
. - Sets the source reference on Chart Studio Cloud for
text
. - 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 arearrayOk: true
) are available. Finally, the template string has access to variableslabel
,color
,value
,text
andpercent
. - Sets the source reference on Chart Studio Cloud for
texttemplate
. - Sets the source reference on Chart Studio Cloud for
color
. - 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.
- Sets the source reference on Chart Studio Cloud for
family
. - Sets the source reference on Chart Studio Cloud for
lineposition
. - 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.
- Sets the source reference on Chart Studio Cloud for
shadow
. - Sets the source reference on Chart Studio Cloud for
size
. - Sets the source reference on Chart Studio Cloud for
style
. - Sets the source reference on Chart Studio Cloud for
textcase
. - Sets the source reference on Chart Studio Cloud for
variant
. - Sets the source reference on Chart Studio Cloud for
weight
. - Sets the title of the chart. If it is empty, no title is displayed.
- Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- Sets the source reference on Chart Studio Cloud for
values
.