UNPKG

vega-lite

Version:

Vega-Lite is a concise high-level language for interactive visualization.

28 lines 1.12 kB
/** * Data type based on level of measurement */ export declare const Type: { readonly quantitative: "quantitative"; readonly ordinal: "ordinal"; readonly temporal: "temporal"; readonly nominal: "nominal"; readonly geojson: "geojson"; }; export type Type = keyof typeof Type; export declare function isType(t: any): t is Type; export declare function isContinuous(type: Type): type is 'quantitative' | 'temporal'; export declare function isDiscrete(type: Type): type is 'ordinal' | 'nominal'; export declare const QUANTITATIVE: "quantitative"; export declare const ORDINAL: "ordinal"; export declare const TEMPORAL: "temporal"; export declare const NOMINAL: "nominal"; export declare const GEOJSON: "geojson"; export type StandardType = 'quantitative' | 'ordinal' | 'temporal' | 'nominal'; export declare const TYPES: ("ordinal" | "quantitative" | "temporal" | "nominal" | "geojson")[]; /** * Get full, lowercase type name for a given type. * @param type * @return Full type name. */ export declare function getFullName(type: Type | string): Type | undefined; //# sourceMappingURL=type.d.ts.map