react-heatgrid
Version:
React HeatGrid: Easily integrate customizable, interactive heatmaps into your React applications for data visualization.
22 lines (21 loc) • 567 B
TypeScript
import { CSSProperties } from "react";
export type CalendarType = {
months?: number;
gridSize?: string;
gap?: string;
data: {
value: number;
day: string;
}[];
dateFormat?: "yyyy-mm-dd" | "WeekDay, Month Date, Year";
colors: string[];
fontSize: string;
fontColor: string;
DisabledToolTip?: boolean;
DisabledLegend?: boolean;
placement?: "top" | "bottom";
tooltipBg?: string;
tooltipTextColor?: string;
tooltipLabel: "activity" | "contributions" | string;
tooltipStyle?: CSSProperties;
};