{{#if (eq this.metric "cpu")}} CPU
{{else if (eq this.metric "memory")}} Memory
{{else}} {{this.metric}} {{/if}}
<:svg as |c|>
{{#each (reverse this.series) as |series idx|}}
{{/each}}
<:after as |c|>
{{series.name}}
{{#if (eq this.metric "cpu")}}
{{format-scheduled-hertz datum.datum.used}}
{{else if (eq this.metric "memory")}}
{{format-scheduled-bytes datum.datum.used}}
{{else}}
{{datum.formatttedY}}
{{/if}}
{{#if (eq this.metric "cpu")}}
{{format-scheduled-hertz this.data.lastObject.used}} / {{format-scheduled-hertz this.reservedAmount}} Total
{{else if (eq this.metric "memory")}}
{{format-scheduled-bytes this.data.lastObject.used}} / {{format-scheduled-bytes this.reservedAmount start="MiB"}} Total
{{else}}
{{this.data.lastObject.used}} / {{this.reservedAmount}} Total
{{/if}}