Macaw.Frame.Maps.Hexbin (macaw_frame v0.1.0)

Copy Markdown View Source

maps.hexbin (spec/13 §6.4), a map layer: the slot's points projected, then binned into hexagons of a radius in pixels by the hexbin step, each cell filled by its count through hexbin.color, a sequential scale over [0, auto], with its titled legend inside the map's bottom left. The cells are in pixels, so a view change bins again. Copied from the gallery's hexbin chart (examples/lib/examples/charts/hexbin_chart.ex).

iex> Macaw.Frame.Maps.Hexbin.id()
"maps.hexbin"

Summary

Functions

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

Its fixture (spec/14 §1): sightings clustered about the cities.

The fragment: projection, then hexbin, under one path 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 §6.4).

Its slot: points, a longitude and a latitude, and an optional weight.

Functions

doc()

@spec doc() :: String.t()

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

fixtures()

@spec fixtures() :: [map()]

Its fixture (spec/14 §1): sightings clustered about the cities.

fragment()

@spec fragment() :: map()

The fragment: projection, then hexbin, under one path 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 §6.4).

slots()

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

Its slot: points, a longitude and a latitude, and an optional weight.