@opendatasoft/visualizations
Version:
Opendatasoft's components to easily build dashboards and visualizations.
6 lines (5 loc) • 360 B
TypeScript
import type { Color } from 'types';
export declare const DEFAULT_GREY_COLOR = "#F0F0F0";
export declare function defaultValue<T>(value: T | undefined, fallback: T): T;
export declare function singleChartJsColor(color?: Color | Color[]): string | undefined;
export declare function multipleChartJsColors(color?: Color | Color[]): string | string[] | undefined;