From 362a324b3329bdcc8f20f1d0865fce52ec9e8898 Mon Sep 17 00:00:00 2001
From: schneefux <schneefux+commit@schneefux.xyz>
Date: Sat, 23 Jun 2018 14:08:12 +0200
Subject: Calculate r^2 and show 'uncertain' labels for max level stats

---
 src/HeroTalentTable.vue | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/HeroTalentTable.vue')

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>
-- 
cgit v1.3.1

