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

100% Statements 17/17
100% Branches 4/4
100% Functions 0/0
100% Lines 14/14

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 24 25 26 27 28 29 30 31 3214x 14x 1x 1x 1x       1x   1x   1x   14x   14x       14x 4x 20x               14x  
<svg [attr.width]="width()" [attr.height]="height()" [attr.viewBox]="viewBox()">
  @if (showArea()) {
    <defs>
      <linearGradient x1="0%" y1="0%" x2="0%" y2="100%" [attr.id]="gradientId">
        <stop [attr.stop-color]="'var(--' + series().colorToken + ')'" />
        <stop
          offset="1"
          stop-opacity="0"
          [attr.stop-color]="'var(--' + series().colorToken + ')'"
        />
      </linearGradient>
    </defs>
    <path stroke="none" [attr.d]="areaPath()" [attr.fill]="'url(#' + gradientId + ')'" />
  }
  <path
    fill="none"
    [attr.d]="path()"
    [attr.stroke]="'var(--' + series().colorToken + ')'"
    [attr.stroke-width]="lineWidth()"
  />
  @if (showMarkers()) {
    @for (point of markerPoints(); track point.x) {
      <circle
        [attr.cx]="point.x"
        [attr.cy]="point.y"
        [attr.r]="markerRadius()"
        [attr.fill]="'var(--' + (markerColor() ?? series().colorToken) + ')'"
      />
    }
  }
</svg>