github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/app/templates/components/distribution-bar.hbs (about) 1 <svg> 2 <defs> 3 <clipPath> 4 <rect class="mask" x="0" y="0" width="100%" height="100%" rx="2px" ry="2px" /> 5 </clipPath> 6 </defs> 7 <g class="bars"></g> 8 </svg> 9 {{#if hasBlock}} 10 {{yield (hash 11 data=_data 12 activeDatum=activeDatum 13 )}} 14 {{else}} 15 <div class="chart-tooltip {{if isActive "active" "inactive"}}" style={{tooltipStyle}}> 16 <ol> 17 {{#each _data as |datum index|}} 18 <li class="{{if (eq datum.label activeDatum.label) "active"}}"> 19 <span class="label {{if (eq datum.value 0) "is-empty"}}"> 20 <span class="color-swatch {{if datum.className datum.className (concat "swatch-" index)}}" /> 21 {{datum.label}} 22 </span> 23 <span class="value">{{datum.value}}</span> 24 </li> 25 {{/each}} 26 </ol> 27 </div> 28 {{/if}}