Interface StackedTrackOptions

interface StackedTrackOptions {
    abbr?: string;
    data?: any;
    horizontal?: boolean;
    label?: string;
    labelRotation?: number;
    legendConfig?: LegendConfig;
    loader?: Element;
    maxWidth?: number;
    showLabels?: boolean;
    showLines?: boolean;
    tooltip?: string;
    width?: number;
    onError?(error, track): void;
    onMount?(event, track): void;
    onRescale?(event, track): void;
    onUnmount?(event, track): void;
    onUpdate?(event, track): void;
}

Hierarchy

  • TrackOptions
    • StackedTrackOptions

Properties

abbr?: string

Short label to use in title if used with TrackGroup

data?: any

Brief

Data for all plots in the track.

May be of any type or a function or promise returning data. The plots will need to have a data accessor function defined, that can pick the data it needs from this value.

horizontal?: boolean

Orientation of track. Default is false or unset (vertical).

label?: string

Label to use in title if used with TrackGroup

labelRotation?: number

Brief

Rotation angle for the labels.

The angle is computed clockwise from the track central line. (i.e. The vertical line if the track is vertical and the horizontal line if the track is horizontal.)

legendConfig?: LegendConfig

A config object used to display track legend if used with LogController

loader?: Element

An optional loader element that will be made visible during loading

maxWidth?: number

Max width of track in pixels

showLabels?: boolean

Brief

Option to show labels on the track.

showLines?: boolean

Brief

Option to show lines on the track.

tooltip?: string

Tooltip to show when mouse hovers over track title if used with TrackGroup

width?: number

Relative track width when used in a LogController, i.e. a track with width set to 3 will be three times wider than tracks set to width 1.

Methods

  • Hook if a track is set in an error state

    Parameters

    • error: string | Error
    • track: Track<TrackOptions>

      track instance reference

    Returns void

  • Hook when track is mounted to the DOM

    Parameters

    • event: OnMountEvent

      event data

    • track: Track<TrackOptions>

      track instance reference

    Returns void

  • Hook when track is being rescaled, for example from user interaction if used with a LogController.

    Parameters

    • event: OnRescaleEvent

      event data

    • track: Track<TrackOptions>

      track instance reference

    Returns void

  • Hook when track is unmounted from the DOM

    Parameters

    • event: OnUnmountEvent

      event data

    • track: Track<TrackOptions>

      track instance reference

    Returns void

  • Hook when track is updated in the DOM model.

    Parameters

    • event: OnUpdateEvent

      event data

    • track: Track<TrackOptions>

      track instance reference

    Returns void

Generated using TypeDoc