Expand description
The stylesheet half of a chart: a run of magnitudes against one axis, drawn as bars.
The markup is drawn by the quasi hosts (quasi-webview for this renderer),
which own the vocabulary member. This module owns the classes that markup
carries and the rules that draw them, so the generated stylesheet and the
emitted markup cannot disagree about a name.
meter’s neighbour and its opposite in one respect: a meter
draws one proportion, and a chart draws a series whose markup computes
nothing. Both numbers reach the markup as they were given, and the division
happens in CSS.
§Why the arithmetic is in the stylesheet
quasi-declare derives a compiled template by rendering a screen with
stand-in values and keeping the bytes that no request reaches; a number the
description HANDS a renderer is found in that render and becomes a hole, and
a number the renderer WORKS OUT from two of them is printed as its
arithmetic, leaves no stand-in to find, and is baked into the template as a
constant. quasi_router::stage::number_at says so in as many words.
So --value and --most reach the markup as themselves, and chart_rules
divides them where a browser can. Both ride in
VARS_ATTR rather than in style, so a page whose
policy refuses style attributes still draws its bars.
Constants§
- CHART_
CLASSES - Every class a chart’s markup can carry.
Functions§
- rules
- The rules, for the stylesheet builder.