Props for ReadingHabitsChart component.

interface ReadingHabitsChartProps {
readonly history: ReadingHistory;
readonly timeRange: TimeRange;
readonly className?: string;
readonly comparisonData?: ReturnType<typeof computeReadingHabits>;
readonly comparisonLabel?: string;
}
interface ReadingHabitsChartProps {
    history: ReadingHistory;
    timeRange: TimeRange;
    className?: string;
    comparisonData?: {
        byDayOfWeek: { day: string; chapters: number }[];
        byTimeOfDay: { hour: string; chapters: number }[];
        peakDay: null | string;
        peakHour: null | string;
    };
    comparisonLabel?: string;
}

Properties

timeRange: TimeRange
className?: string
comparisonData?: {
    byDayOfWeek: { day: string; chapters: number }[];
    byTimeOfDay: { hour: string; chapters: number }[];
    peakDay: null | string;
    peakHour: null | string;
}
comparisonLabel?: string