swimlane/ngx-charts

View on GitHub
projects/swimlane/ngx-charts/src/lib/number-card/card.component.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function update has 30 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 projects/swimlane/ngx-charts/src/lib/number-card/card.component.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status