ChartValueSemantics
ChartValueSemantics: generated from the source of active-charts.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Types#
What a numeric chart value means, declared once.
Every variant carries its identity (the discriminating kind, plus the currency where relevant) and its precision as separate properties.
type ChartValueSemantics =
| {
kind: 'number';
format?: NumberFormat;
}
| {
kind: 'count';
}
| {
kind: 'money';
currency: string;
decimals?: number;
}
| {
kind: 'price';
currency: string;
decimals: number;
}
| {
kind: 'percent';
source: 'fraction' | 'percentage-points';
preset?: PercentFormat;
};