DomainFn<T, D> typedef

D DomainFn (
  1. T,
  2. int

T is the object type which holds the data to be charted. D is the domain type of the data (e.g., dates, days, numbers, etc) R is the range type of the data (e.g., prices, numbers, etc.)


typedef DomainFn<T, D> = D Function(T, int);