@uiw/react-heat-map
Version:
React component create calendar heatmap to visualize time series data, a la github contribution graph.
15 lines (14 loc) • 578 B
TypeScript
import React from 'react';
import { RectProps } from './Rect';
import { SVGProps } from './SVG';
export interface LegendProps extends RectProps {
panelColors: SVGProps['panelColors'];
rectSize: SVGProps['rectSize'];
leftPad: number;
rectY: number;
legendCellSize: number;
legendRender?: (props: RectProps) => React.ReactElement;
topPad: number;
space: number;
}
export default function Legend({ panelColors, leftPad, topPad, rectY, space, rectSize, legendCellSize, legendRender, ...props }: LegendProps): import("react/jsx-runtime").JSX.Element;