summaryrefslogtreecommitdiff
path: root/src/HeroTalentTable.vue
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2018-06-23 14:08:12 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2018-12-13 17:09:22 +0100
commit362a324b3329bdcc8f20f1d0865fce52ec9e8898 (patch)
treec931af0c0d8588c47f791b85d3faeef55117ce5b /src/HeroTalentTable.vue
parente721ba94e5113e567283724f3d30c51929bbf287 (diff)
downloadbrokentalents-362a324b3329bdcc8f20f1d0865fce52ec9e8898.tar.gz
brokentalents-362a324b3329bdcc8f20f1d0865fce52ec9e8898.zip
Calculate r^2 and show 'uncertain' labels for max level stats
Diffstat (limited to 'src/HeroTalentTable.vue')
-rw-r--r--src/HeroTalentTable.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/HeroTalentTable.vue b/src/HeroTalentTable.vue
index 6bd228a..dc2098c 100644
--- a/src/HeroTalentTable.vue
+++ b/src/HeroTalentTable.vue
@@ -22,15 +22,15 @@
{{ (100 * props.row.Winner).toFixed(2) }}% <!-- No Talent -->
</template>
<template v-else>
- {{ (100 * props.row.TalentWinrateBase).toFixed(2) }}%
+ {{ (100 * props.row.TalentWinrateBase).toFixed(0) }}%
</template>
- <small v-if="props.row.SampleTooSmall">uncertain</small>
+ <small v-if="props.row.SampleTooSmall"><br />uncertain</small>
</b-table-column>
<b-table-column field="TalentWinrateMax" label="Max Level Win Rate" meta="Estimated." sortable numeric>
<template v-if="!isNaN(props.row.TalentWinrateMax)">
- {{ (100 * props.row.TalentWinrateMax).toFixed(2) }}%
- <small v-if="props.row.SampleTooSmall">uncertain</small>
+ {{ (100 * props.row.TalentWinrateMax).toFixed(0) }}%
+ <small v-if="props.row.SampleTooSmall || props.row.VarianceTooLarge"><br />uncertain</small>
</template>
</b-table-column>
</template>