@equinor/videx-wellog
    Preparing search index...

    Class GraphTrack

    An extension to CanvasTrack for rendering plots

    See ./readme.md in source code for more info

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _data: any
    _isLoading: boolean
    _mounted: boolean
    _transformCondition?: number = null
    _transformedData?: any
    ctx: CanvasRenderingContext2D
    elm: HTMLElement
    error: string | Error
    id: string | number
    legendUpdate?: LegendTriggerFunction
    loader: any
    options: GraphTrackOptions
    order: number
    plots: Plot<PlotOptions>[]
    scale: Scale
    trackScale: Scale
    transform: Transform

    Accessors

    • get isLoading(): boolean

      Returns boolean

    • set isLoading(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get isMounted(): boolean

      Returns boolean

    Methods

    • Create range based on domain.

      Parameters

      • isHorizontal: boolean

      Returns number[]

    • Calls OnMount and OnUpdate. Useful if track is stand-alone

      Parameters

      • elm: HTMLElement
      • scale: Scale

      Returns void

    • Initiate loading of data for track. Will set response to the track's data property. If showLoader is set to true, the current track will be hidden, and (if supplied) the loader element will be shown, until data is resolved. Calls onDataLoaded if implemented by track.

      Parameters

      • data: any
      • showLoader: boolean = true

      Returns void

    • Should be called from track implementation in case an unrecoverable error occurs.

      Parameters

      • error: string | Error

      Returns void

    • Handler for onUnmount event. Called when track DOM-element is remove from the DOM model. Typically, trackEvent will be an empty object, but depends on container.

      Parameters

      • trackEvent: OnUnmountEvent = {}

      Returns void

    • Updates all plots with data by triggering each plot's data accessor function.

      Parameters

      • data: any

      Returns void