@uiw/react-heat-map
Version:
React component create calendar heatmap to visualize time series data, a la github contribution graph.
9 lines (8 loc) • 513 B
TypeScript
import { SVGProps, HeatMapValue } from './SVG';
export declare const oneDayTime: number;
export declare function isValidDate(date: Date): boolean;
export declare function getDateToString(date: Date): string;
export declare function formatData(data?: SVGProps['value']): Record<string, HeatMapValue>;
/** 排序 比较函数 */
export declare function numberSort(keys?: number[]): number[];
export declare function existColor(num: number | undefined, nums: number[], panelColors?: Record<number, string>): string;