From 059e3abd9995919fc2756496579c34972f9e8db5 Mon Sep 17 00:00:00 2001
From: schneefux <schneefux+commit@schneefux.xyz>
Date: Sun, 17 Jun 2018 14:08:43 +0200
Subject: ReportTable: Advantage per Level -> Max Win Rate, fix 5v5/3v3 table,
 add filters

---
 src/WinPickScatter.vue | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/WinPickScatter.vue')

diff --git a/src/WinPickScatter.vue b/src/WinPickScatter.vue
index 7c2f906..97acfbc 100644
--- a/src/WinPickScatter.vue
+++ b/src/WinPickScatter.vue
@@ -22,13 +22,14 @@ export default Vue.component('win-pick-scatter', {
     selectedMode() {
       this.refresh();
     },
-    selectedActor() {
+    filterLowPickrate() {
       this.refresh();
     },
   },
   methods: {
     refresh() {
-      const data = ReportService.getReport(this.selectedMode);
+      const data = ReportService.getReport(this.selectedMode)
+        .filter((entry) => !this.filterLowPickrate? !entry.SampleTooSmall : true);
       const total = ReportService.getTotalPicks(this.selectedMode);
       const dataWithRarity = (rarity) => data.filter((entry) => maps.getTalentRarity(entry.Talent) == rarity);
 
-- 
cgit v1.3.1

