microting/ngx-charts

View on GitHub
src/number-card/card.component.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

  update(): void {
    this.zone.run(() => {
      const hasValue = this.data && typeof this.data.value !== 'undefined';
      const valueFormatting = this.valueFormatting || (card => card.value.toLocaleString());
      const labelFormatting = this.labelFormatting || (card => escapeLabel(trimLabel(card.label, 55)));
Severity: Minor
Found in src/number-card/card.component.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status