github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/templates/components/distribution-bar.hbs (about)

     1  <svg>
     2    <defs>
     3      <clipPath>
     4        <rect
     5          class="mask"
     6          x="0"
     7          y="0"
     8          width="100%"
     9          height="100%"
    10          rx="2px"
    11          ry="2px"
    12        ></rect>
    13      </clipPath>
    14    </defs>
    15    <g class="bars"></g>
    16  </svg>
    17  {{#if (has-block)}}
    18    {{yield (hash data=this._data activeDatum=this.activeDatum)}}
    19  {{else}}
    20    <div
    21      class="chart-tooltip with-active-datum
    22        {{if this.isActive 'active' 'inactive'}}"
    23      style={{this.tooltipStyle}}
    24    >
    25      <ol>
    26        {{#each this._data as |datum index|}}
    27          <li class="{{if (eq datum.label this.activeDatum.label) 'is-active'}}">
    28            <span class="label {{if (eq datum.value 0) 'is-empty'}}">
    29              <span
    30                class="color-swatch
    31                  {{if datum.className datum.className (concat 'swatch-' index)}}"
    32              ></span>
    33              {{datum.label}}
    34            </span>
    35            <span class="value">{{datum.value}}</span>
    36          </li>
    37        {{/each}}
    38      </ol>
    39    </div>
    40  {{/if}}