MAIDR Documentation - v4.4.0
    Preparing search index...

    Type Alias FieldRef

    FieldRef: string

    The name of a property on the author's own datum/row object.

    Never a function: a declaration must survive JSON, because four of the slots it rides in are serialised chart config and a function cannot be written in one. d3 keeps its DataAccessor<T> (string | function) and accepts a bare FieldRef wherever this file names one.

    The name is resolved against the row the charting library bound to the mark — a Chart.js datum, a Highcharts point.options, an amCharts dataItem.dataContext — so it is the column name in your data, not a label on the chart.

    // rows are { time: 4, surv: 0.8, isCensored: true }
    { type: TraceType.SURVIVAL, censored: 'isCensored' }