All files / microchart-donut si-microchart-donut.component.html

100% Statements 11/11
100% Branches 2/2
100% Functions 0/0
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2412x               12x 12x 12x 12x 13x 13x     13x         12x    
<svg
  xmlns="http://www.w3.org/2000/svg"
  class="chart"
  [attr.viewBox]="'0 0 ' + dim().width + ' ' + dim().height"
  [attr.width]="dim().width"
  [attr.height]="dim().height"
>
  <g class="background">
    <path [attr.d]="backgroundPath()" [style.stroke-width]="arcThickness()" />
  </g>
  <g class="data">
    @for (series of internalSeries(); track $index) {
      @if (series?.path) {
        <path
          [attr.d]="series.path"
          [attr.data-id]="series.series.id"
          [style.stroke]="series.colorVar"
          [style.stroke-width]="arcThickness()"
        />
      }
    }
  </g>
</svg>