{#each Object.entries(tabLabels) as [tab, label]} {@const enabled = tab === 'elevation' ? hasElevation : tab === 'slope' ? hasSlope : tab === 'speed' ? hasSpeed : tab === 'hr' ? hasHR : tab === 'cadence' ? hasCadence : hasPower} {/each}
{#if hasDistance && chartType === 'line' && activeTab !== 'slope'}
X: {#each (['time', 'distance'] as XMode[]) as mode} {/each}
{/if} {#if chartType === 'line' && activeTab !== 'slope'}
{#each (['raw', '10s', '20s'] as SmoothMode[]) as sm} {/each}
{/if} {#if activeTab !== 'slope'}
{#each (['line', 'histogram'] as ChartType[]) as type} {/each}
{/if}
{#if chartType === 'histogram'}
{#if canAlignZones}
Bins: {#each ([false, true] as boolean[]) as zoneMode} {/each}
{/if} {#if !alignZones}
{Math.round(trimMin)}
{ const v = +e.currentTarget.value; trimMin = v < trimMax - step ? v : trimMax - step; }} class="range-thumb" /> { const v = +e.currentTarget.value; trimMax = v > trimMin + step ? v : trimMin + step; }} class="range-thumb" />
{Math.round(trimMax)}
Bins {bins}
{/if}
{/if}