import { Orientation } from 'vega'; import { PositionChannel } from '../channel'; import { Field, PositionFieldDef, SecondaryFieldDef, ValueDef } from '../channeldef'; import { Config } from '../config'; import { Data } from '../data'; import { Encoding } from '../encoding'; import { NormalizerParams } from '../normalize/index'; import { GenericUnitSpec, NormalizedLayerSpec } from '../spec'; import { Step } from '../spec/base'; import { TitleParams } from '../title'; import { Transform } from '../transform'; import { CompositeMarkNormalizer } from './base'; import { GenericCompositeMarkDef, PartsMixins } from './common'; import { ErrorBand, ErrorBandDef } from './errorband'; export declare const ERRORBAR: 'errorbar'; export declare type ErrorBar = typeof ERRORBAR; export declare type ErrorBarExtent = 'ci' | 'iqr' | 'stderr' | 'stdev'; export declare type ErrorBarCenter = 'mean' | 'median'; export declare type ErrorBarPart = 'ticks' | 'rule'; export declare type ErrorInputType = 'raw' | 'aggregated-upper-lower' | 'aggregated-error'; export interface ErrorExtraEncoding { /** * Error value of x coordinates for error specified `"errorbar"` and `"errorband"`. */ xError?: SecondaryFieldDef | ValueDef; /** * Secondary error value of x coordinates for error specified `"errorbar"` and `"errorband"`. */ xError2?: SecondaryFieldDef | ValueDef; /** * Error value of y coordinates for error specified `"errorbar"` and `"errorband"`. */ yError?: SecondaryFieldDef | ValueDef; /** * Secondary error value of y coordinates for error specified `"errorbar"` and `"errorband"`. */ yError2?: SecondaryFieldDef | ValueDef; } export declare type ErrorEncoding = Pick, PositionChannel | 'color' | 'detail' | 'opacity'> & ErrorExtraEncoding; export declare const ERRORBAR_PARTS: ErrorBarPart[]; export declare type ErrorBarPartsMixins = PartsMixins; export interface ErrorBarConfig extends ErrorBarPartsMixins { /** * The center of the errorbar. Available options include: * - `"mean"`: the mean of the data points. * - `"median"`: the median of the data points. * * __Default value:__ `"mean"`. * @hide */ center?: ErrorBarCenter; /** * The extent of the rule. Available options include: * - `"ci"`: Extend the rule to the confidence interval of the mean. * - `"stderr"`: The size of rule are set to the value of standard error, extending from the mean. * - `"stdev"`: The size of rule are set to the value of standard deviation, extending from the mean. * - `"iqr"`: Extend the rule to the q1 and q3. * * __Default value:__ `"stderr"`. */ extent?: ErrorBarExtent; } export declare type ErrorBarDef = GenericCompositeMarkDef & ErrorBarConfig & { /** * Orientation of the error bar. This is normally automatically determined, but can be specified when the orientation is ambiguous and cannot be automatically determined. */ orient?: Orientation; }; export interface ErrorBarConfigMixins { /** * ErrorBar Config */ errorbar?: ErrorBarConfig; } export declare const errorBarNormalizer: CompositeMarkNormalizer<"errorbar">; export declare function normalizeErrorBar(spec: GenericUnitSpec, ErrorBar | ErrorBarDef>, { config }: NormalizerParams): NormalizedLayerSpec; export declare function errorBarParams & (ErrorBarDef | ErrorBandDef)>(spec: GenericUnitSpec, M | MD>, compositeMark: M, config: Config): { transform: Transform[]; groupby: string[]; continuousAxisChannelDef: PositionFieldDef; continuousAxis: 'x' | 'y'; encodingWithoutContinuousAxis: ErrorEncoding; ticksOrient: Orientation; markDef: MD; outerSpec: { data?: Data; title?: string | TitleParams; name?: string; description?: string; transform?: Transform[]; width?: number | Step; height?: number | Step; }; tooltipEncoding: ErrorEncoding; }; //# sourceMappingURL=errorbar.d.ts.map