MAIDR JavaScript API
    Preparing search index...

    Type Alias LinePointDecoratorInternal

    LinePointDecorator: (point: LinePoint, datum: unknown, index: number) => void

    Adds a chart-specific field to a point after the line core has read its x, y and z from the same datum.

    A survival curve is a line whose samples also say whether the time was censored and how wide the confidence band is there. Those live on the very datum the core has just resolved, and the core is the only place that knows which datum produced which point across all three of its extraction patterns — so the extension point is here rather than a second pass that would have to guess the pairing.

    Type Declaration

      • (point: LinePoint, datum: unknown, index: number): void
      • Parameters

        • point: LinePoint

          The point the core built, to add fields to in place

        • datum: unknown

          The datum it was read from

        • index: number

          That datum's index within its selection

        Returns void