Skip to main content

Module chart

Module chart 

Source
Expand description

The one chart of a report: the adapter of the outcome’s report, with the options the web draws its charts with.

Structs§

ChartLook
How a chart’s text is sized and what a PNG is drawn on.
ChartOpts

Enums§

ChartBackend
ChartFormat
SortOrder
Sort key applied to a ranked set of rows. Shared by the balance adapter and (via the web handler) the balance table rendering — keeping them on one enum means the chart can’t drift from the table ordering.

Constants§

DEFAULT_HEIGHT
DEFAULT_WIDTH
MAX_SIDE

Functions§

chart_backend
override_ is kitty or halfblocks; any other value is ignored.
chart_spec
The chart of a report outcome.
env_speaks_kitty
Terminal emulators announce themselves through env vars; env looks one up.
kind_name
kind_or_default
name’s kind; a missing or unknown name is Bar.
parse_kind
The chart kind named name: bar, line or stacked.
render_chart
spec in format; size is the SVG’s and the PNG’s width and height.
render_svg_chart
The spec drawn as an SVG document.
series_includes_net
Only chart_series=groups drops the Activity chart’s Net series.
term_speaks_kitty