Macaw.Frame.Charts.Funnel (macaw_frame v0.1.0)

Copy Markdown View Source

charts.funnel (spec/13 §7.1), a second-cut chart: a stage per row, in the rows' order, a bar centered across the plot whose width is its value's share of the greatest stage, at least neck of the plot, labeled with its conversion share of the first stage. The widths and shares are the funnel spatial step's (Macaw.Frame.Transforms.Funnel, over macaw_data's max), a frame concern; the bars are rects at its pixel edges along x and a band per stage along y. New in the second cut.

iex> Macaw.Frame.Charts.Funnel.id()
"charts.funnel"

Summary

Functions

What it draws, for a person and a builder's library.

Its fixtures (spec/14 §1): a sign-up funnel's five stages.

The fragment: the funnel step under a rect per stage on a band per stage.

The fragment's id in the catalog store.

What the fragment is: a whole design, or layers placed in one.

Its namespace (spec/13 §2).

Its parameters (spec/13 §3, §7.1).

Its slot: data, a stage and its value, in funnel order.

Functions

doc()

@spec doc() :: String.t()

What it draws, for a person and a builder's library.

fixtures()

@spec fixtures() :: [map()]

Its fixtures (spec/14 §1): a sign-up funnel's five stages.

fragment()

@spec fragment() :: map()

The fragment: the funnel step under a rect per stage on a band per stage.

id()

@spec id() :: String.t()

The fragment's id in the catalog store.

kind()

@spec kind() :: :design | :layers

What the fragment is: a whole design, or layers placed in one.

namespace()

@spec namespace() :: :charts | :maps | :diagrams

Its namespace (spec/13 §2).

parameters()

@spec parameters() :: [{String.t(), map()}]

Its parameters (spec/13 §3, §7.1).

slots()

@spec slots() :: %{required(String.t()) => map()}

Its slot: data, a stage and its value, in funnel order.