Skip to content
EliteChart

Percent

Documentation


Documentation / @elitechart/core / Percent

code
type Percent = number & {
  __brand: "Percent";
};

Defined in: data/primitives.ts:61

Percent value as a plain number (e.g. 12.5, not 0.125). Use for display-time percent change.

Type Declaration

__brand

code
readonly __brand: "Percent";

Example

code
import { asPercent } from '@elitechart/core';
const change: Percent = asPercent(2.34);