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

Copy Markdown View Source

charts.grouped_bar (spec/13 §4.4): each series' bar placed inside its category's band by an x_offset band over the series, colored by series. Copied from the gallery's Examples.Charts.GroupedBarChart (examples/lib/examples/charts/grouped_bar_chart.ex).

iex> Macaw.Frame.Charts.GroupedBar.id()
"charts.grouped_bar"

Summary

Functions

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

Its fixtures (spec/14 §1): the gallery's grouped bars, three years by quarter.

The fragment: a rect per row offset within its category by its series.

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.4): the padding 0.2.

Its slot: data, a category, a series and a value, long form.

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 grouped bars, three years by quarter.

fragment()

@spec fragment() :: map()

The fragment: a rect per row offset within its category by its series.

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.4): the padding 0.2.

slots()

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

Its slot: data, a category, a series and a value, long form.