{metricName} ({unit}) {#if job.resources.length > 1} {/if} {#key selectedSeries} {#if $metricData.fetching} {:else if $metricData.error} {$metricData.error.message} {:else if selectedSeries != null && !patternMatches} handleZoom(detail)} cluster={job.cluster} subCluster={job.subCluster} timestep={selectedData.timestep} scope={selectedScope} metric={metricName} numaccs={job.numAcc} numhwthreads={job.numHWThreads} series={selectedSeries} {isShared} {zoomState} {thresholdState} enableFlip /> {:else if statsSeries[selectedScopeIndex] != null && patternMatches} handleZoom(detail)} cluster={job.cluster} subCluster={job.subCluster} timestep={selectedData.timestep} scope={selectedScope} metric={metricName} numaccs={job.numAcc} numhwthreads={job.numHWThreads} series={selectedSeries} {isShared} {zoomState} {thresholdState} statisticsSeries={statsSeries[selectedScopeIndex]} useStatsSeries={!!statsSeries[selectedScopeIndex]} enableFlip /> {/if} {/key}