UNPKG

@equinor/videx-wellog

Version:

Visualisation components for wellbore log data

48 lines (47 loc) 1.78 kB
import { TrackOptions } from '../interfaces'; export interface DistributionTrackOptions extends TrackOptions { /** * 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. */ data?: Promise<any> | Function | any; /** Whether or not to show the loader (if configured) */ showLoader?: boolean; /** Orientation of track. Default is false or unset (vertical). */ horizontal?: boolean; /** The height to use for discrete values. */ discreteHeight?: number; /** * Specifies the type of interpolation to use when rendering the graph. * - 0: Linear - Smoothly interpolates between data points. * - 1: Nearest - Jumps to the nearest data point without smoothing. * - 2: Discrete - Displays distinct steps with adaptive height defined by `discreteHeight`. */ interpolationType?: number; /** Number of legend entries to display in the track. */ legendEntries?: number; /** List of distribution components. */ components?: DistributionComponents; } /** Represents a collection of distribution components. */ export interface DistributionComponents { [key: string]: { /** Color of the element. */ color: string; /** Optional color for legend labels. */ textColor?: string; }; } export interface DistributionData { /** Depth of distribution. */ depth: number; /** Composition of the distribution. */ composition: CompositionEntry[]; } export interface CompositionEntry { /** Name of the entry. */ key: string; /** Percentage value of the entry. */ value: number; }