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

Copy Markdown View Source

charts.bubble (spec/13 §4.8): charts.scatter with each circle sized through a sqrt size scale, drawn largest first so small bubbles stay visible, and labeled where a label fits. Copied from the gallery's Examples.Charts.BubbleChart (examples/lib/examples/charts/bubble_chart.ex).

iex> Macaw.Frame.Charts.Bubble.id()
"charts.bubble"

Summary

Functions

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

Its fixtures (spec/14 §1): the gallery's countries by income, life and population.

The fragment: circles sized by a sqrt scale, sorted largest first.

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

Its slot: charts.scatter's and a size.

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 countries by income, life and population.

fragment()

@spec fragment() :: map()

The fragment: circles sized by a sqrt scale, sorted largest first.

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

slots()

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

Its slot: charts.scatter's and a size.