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

Copy Markdown View Source

charts.density (spec/13 §7.1), a second-cut chart: a kernel density estimate of a number's readings, one filled area per series. The estimate is macaw_data's density operation (macaw_data#309), grouped by series when it is bound, never the frame's: the area reads its value and density columns as x and y. New in the second cut.

iex> Macaw.Frame.Charts.Density.id()
"charts.density"

Summary

Functions

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

Its fixtures (spec/14 §1): two services' response times.

The fragment: macaw_data's density by series under an area and its edge.

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 value and an optional series.

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): two services' response times.

fragment()

@spec fragment() :: map()

The fragment: macaw_data's density by series under an area and its edge.

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 value and an optional series.