BarChartItem import type {BarChartItem} from '@ryanatkn/syntax-highlighter-bench/bar_chart.js'; One library's bar: a number with its length and ratio, or the reason there is none.
library
type string
text
The number as text, or the reason there is none.
type string
has_value
Whether the library has a number in the row.
type boolean
fraction
The bar's length, as a fraction of the row's largest number: 0, and no bar, with no number or one at or under zero.
type number
ratio
The ratio against the baseline, when the number has one.
type number | undefined
within_floor
Whether the ratio is inside the row's noise floor, and so not a difference.
type boolean
bound
Whether the ratio is a lower bound, as matrix_row_is_bounded says.
type boolean
anchor
Whether this library's number is the one the ratios are taken against.
type boolean
details
What the number is made of, as the tables show it in a cell's details.
type string[]