From a8135ad40cbeb6c0c464d57010032dc033993439 Mon Sep 17 00:00:00 2001
From: schneefux <schneefux+commit@schneefux.xyz>
Date: Sat, 16 Jun 2018 20:47:59 +0200
Subject: Calculate and show level scaling

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

(limited to 'src/WinPickScatter.vue')

diff --git a/src/WinPickScatter.vue b/src/WinPickScatter.vue
index f2d495c..7c2f906 100644
--- a/src/WinPickScatter.vue
+++ b/src/WinPickScatter.vue
@@ -33,8 +33,8 @@ export default Vue.component('win-pick-scatter', {
       const dataWithRarity = (rarity) => data.filter((entry) => maps.getTalentRarity(entry.Talent) == rarity);
 
       const traces = maps.RARITIES.map((rarity) => ({
-        x: dataWithRarity(rarity).map((entry) => entry.Winner),
-        y: dataWithRarity(rarity).map((entry) => maps.playersPerMatch(this.selectedMode) * entry.Count / total),
+        x: dataWithRarity(rarity).map((entry) => entry.TotalWinner || entry.Winner),
+        y: dataWithRarity(rarity).map((entry) => maps.playersPerMatch(this.selectedMode) * (entry.TotalCount || entry.Count) / total),
         text: dataWithRarity(rarity).map((entry) => maps.getHero(entry.Actor)),
         name: rarity,
         mode: 'markers',
-- 
cgit v1.3.1

