{#if poll}
{poll.name}
{@html poll.description.rendered}
{t('option')}
{t('average')}
{t('histogram')}
{#each Object.entries(poll.evaluation).sort((a,b) => b[0] - a[0]) as [avg,optionset]} {#each Object.entries(optionset) as [option_id,histo]}
{poll.options[option_id].name}
{(+avg).toFixed(3)}
{/each} {/each}
{/if}