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

Copy Markdown View Source

charts.heatmap (spec/13 §4.9): a cell per row colored through a sequential or diverging scale, over band or continuous x, its legend titled on top. Copied from the gallery's Examples.Charts.Heatmap (examples/lib/examples/charts/heatmap.ex); whether x is a band or continuous with x_end is the x_scale parameter, since a fragment cannot read its bindings.

iex> Macaw.Frame.Charts.Heatmap.id()
"charts.heatmap"

Summary

Functions

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

Its fixtures (spec/14 §1): the gallery's heatmap, requests by weekday and hour.

The fragment: a rect per cell through a color scale.

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, §4.9).

Its slot: data, an x, an optional x_end, a y and a value.

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): the gallery's heatmap, requests by weekday and hour.

fragment()

@spec fragment() :: map()

The fragment: a rect per cell through a color scale.

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, §4.9).

slots()

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

Its slot: data, an x, an optional x_end, a y and a value.