UNPKG

@nova-ui/dashboards

Version:

Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and

26 lines (25 loc) 692 B
import { IFormatter } from "../types"; export declare enum KpiFormatterTypes { Value = "Value" } export interface IKpiData { id?: string; value?: any; units?: string; label?: string; backgroundColor?: string; textColor?: string; fontSize?: string; numberFormat?: string; link?: string; margin?: number; [key: string]: any; } export interface IKpiConfiguration { interactive?: boolean; formatters?: IKpiFormattersConfiguration; } export type IKpiFormattersConfiguration = Partial<Record<KpiFormatterTypes | string, { formatter: IFormatter; }>>; export type IKpiFormatterProperties = Partial<Record<KpiFormatterTypes | string, any>>;