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

Copy Markdown View Source

charts.rose (spec/13 §4.6): one petal per category around a full turn out to its value, colored by value or by category, with radial outward labels kept inside the plot by the polar ring rule. Copied from the gallery's Examples.Charts.RadialBarChart (examples/lib/examples/charts/radial_bar_chart.ex).

iex> Macaw.Frame.Charts.Rose.id()
"charts.rose"

Summary

Functions

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

Its fixtures (spec/14 §1): the gallery's radial bars, a value per month.

The fragment: a polar frame over a band angle and a ring r, one rose layer.

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.6).

Its slot: data, a category and its 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 radial bars, a value per month.

fragment()

@spec fragment() :: map()

The fragment: a polar frame over a band angle and a ring r, one rose layer.

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.6).

slots()

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

Its slot: data, a category and its value.