Skip to content

Type Alias: FunnelareaTrace ​

ts
type FunnelareaTrace = Omit<CommonTraceAttributes, 'hoverinfo'> & DomainTraceAttributes & object;

Funnel area: stages of a process as stacked trapezoids with areas proportional to their values.

Type Declaration ​

NameTypeDescription
aspectratio?numberHeight of the funnel relative to its width. Minimum: 0
baseratio?numberWidth of the funnel's narrow end relative to its wide end. Range: 0 – 1
dlabel?numberLabel step, see label0.
hoverinfo?PerPoint< | "label" | "text" | "value" | "percent" | "name" | `${"label" | "text" | "value" | "percent" | "name"}+${string}` | "all" | "none" | "skip">Which fields hover labels show, in a fixed order; 'skip' also turns hover events off for this trace. Default 'all'.
insidetextfont?PieTraceInsidetextfontFont of labels inside slices. Defaults to textfont, with a color contrasting the slice.
label0?numberWithout labels: numeric labels label0 + i·dlabel (only used when values is set).
labels?DataColumnSlice labels. Slices with the same label are merged: their values are summed (or occurrences counted without values), and other per-slice attributes use the first non-empty entry.
marker?FunnelareaTraceMarkerStage style.
scalegroup?stringFunnel areas with the same non-empty scale group are sized by their totals: their areas are proportional to the sums of their values.
text?DataColumnText per slice, shown on the slice with the text flag of textinfo, and in hover labels unless hovertext is set.
textfont?PieTraceTextfontFont of slice labels. Defaults to layout.font.
textinfo?| "label" | "text" | "value" | "percent" | `${"label" | "text" | "value" | "percent"}+${string}` | "none"What stage labels show, in a fixed order (label, text, value, percent of the total), one per line. Default 'percent', or 'text+percent' when text is an array. Use texttemplate for other layouts.
textposition?PerPoint<"inside" | "none">Where stage labels go: inside (centered in the stage, shrunk to fit) or none.
texttemplate?PerPoint<string | number>Template for stage labels, overriding textinfo: %{label}, %{value}, %{percent}, %{text}, %{color}, %{customdata}, %{meta}, with optional d3 formats (%{percent:.1%}). Without a format, value and percent are formatted like textinfo.
title?FunnelareaTraceTitleThe funnel area title.
type"funnelarea"Trace type.
values?DataColumnSlice values. Non-numeric entries are skipped; merged slices whose total is negative are dropped. Without values every label counts 1.

Released under the MIT License.