exercism/website

View on GitHub
app/javascript/components/profile/contributions-summary/use-chart.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function useChart has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useChart = (
  canvas: HTMLCanvasElement | null,
  reputation: number[],
  trackColor?: string
): Chart<'radar'> => {

    Function generateConfig has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const generateConfig = (
      canvas: HTMLCanvasElement
    ): ChartConfiguration<'radar'> => {
      const borderColor = getComputedStyle(canvas).getPropertyValue(
        '--chartBorderColor'

      There are no issues that match your filters.

      Category
      Status