RatingDashboardHookReturn: {
    histogramData: number[];
    isLoading: boolean;
    lineGraphData: {
        deviation: number;
        timestamp: Date;
        value: number;
    }[];
    maxRatingDeviation: number;
    ratingDeviation: number;
    ratingDeviationTrend: number;
    ratingValue: number;
    ratingValueTrend: number;
    spiderGraphData: Record<string, number>;
    userRatingValue: number;
}

Return type for the useRatingDashboard hook.

Type declaration

  • histogramData: number[]

    Rating distribution data for the histogram.

  • isLoading: boolean

    Whether the data is currently loading.

  • lineGraphData: {
        deviation: number;
        timestamp: Date;
        value: number;
    }[]

    Data for the line graph, including value, deviation, and timestamp.

  • maxRatingDeviation: number

    The maximum normalized rating deviation of a student or learning elements.

  • ratingDeviation: number

    The average normalized rating deviation of a student or learning elements.

  • ratingDeviationTrend: number

    The trend of the normalized rating deviation for a student or learning elements.

  • ratingValue: number

    The average normalized rating value of a student or learning elements.

  • ratingValueTrend: number

    The trend of the normalized rating value for a student or learning elements.

  • spiderGraphData: Record<string, number>

    Data for the spider graph, including topic labels and corresponding value.

  • userRatingValue: number

    The current rating value of a student.

Generated using TypeDoc