fisharebest/webtrees

View on GitHub
resources/js/statistics.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function drawComboChart has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  drawComboChart (elementId, data, options) {
    // Default chart options
    const defaults = {
      title: '',
      subtitle: '',
Severity: Minor
Found in resources/js/statistics.js - About 1 hr to fix

    Function drawPieChart has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      drawPieChart (elementId, data, options) {
        // Default chart options
        const defaults = {
          title: '',
          height: '100%',
    Severity: Minor
    Found in resources/js/statistics.js - About 1 hr to fix

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

        init (locale) {
          if (this.loading || this.initialized) {
            return;
          }
      
      
      Severity: Minor
      Found in resources/js/statistics.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status