Data
Bars
A column chart with a hard baseline. Each column can hold a single fill or several stacked parts, both drawn at full ink strength.
The baseline is drawn at the control weight because it is structure, not data. Stacked parts are laid out bottom-to-top in source order, so the markup reads the way the chart does. The series being read is the accent; the ones it is read against are the neutral ramp, per rule 10.
Stacked columns with an axis and legend
Squad downs in the accent, enemy downs in the danger ink20:0421:47
Enemy downed
Squad downed
<div class="axi-bars" style="--axi-plot-h: 150px; --axi-bars-gap: 5px;">
<div class="axi-bars__col" style="--axi-bar-v: 44%"><span class="axi-bars__part" style="--axi-bar-part: 62%; --axi-series: var(--axi-ok)"></span><span class="axi-bars__part" style="--axi-bar-part: 38%; --axi-series: var(--axi-danger)"></span></div>
<div class="axi-bars__col" style="--axi-bar-v: 72%"><span class="axi-bars__part" style="--axi-bar-part: 70%; --axi-series: var(--axi-ok)"></span><span class="axi-bars__part" style="--axi-bar-part: 30%; --axi-series: var(--axi-danger)"></span></div>
<div class="axi-bars__col" style="--axi-bar-v: 31%"><span class="axi-bars__part" style="--axi-bar-part: 30%; --axi-series: var(--axi-ok)"></span><span class="axi-bars__part" style="--axi-bar-part: 70%; --axi-series: var(--axi-danger)"></span></div>
<div class="axi-bars__col" style="--axi-bar-v: 88%"><span class="axi-bars__part" style="--axi-bar-part: 76%; --axi-series: var(--axi-ok)"></span><span class="axi-bars__part" style="--axi-bar-part: 24%; --axi-series: var(--axi-danger)"></span></div>
</div>
<div class="axi-axis"><span>20:04</span><span>21:47</span></div>
<div class="axi-legend" style="margin-top: 12px;">
<span class="axi-legend__key"><i class="axi-diamond axi-diamond--ok"></i> Enemy downed</span>
<span class="axi-legend__key"><i class="axi-diamond axi-diamond--danger"></i> Squad downed</span>
</div>
Knobs
| Property | Sets | Fallback |
|---|---|---|
--axi-series | the ink a meter fill, bar, plot line or .axi-diamond--series is drawn in | var(--axi-accent) |
--axi-bar-v | height of one .axi-bars__col | 0% |
--axi-bar-part | height of one .axi-bars__part within its column | 0% |
--axi-bars-gap | gap between columns in .axi-bars | 6px |
--axi-plot-h | height of a .axi-plot or .axi-bars | 180px |