Stats since update 6.0 added

I have been busy cleaning up the codebase and fixing tons of little issues. Here are main updates:

Stats since update 6.0

I have added stats for updates since 6.0 to the site. Please note that while certain graphs like WR vs. Battles played - update 6.0 show big differences between 6.0 and 6.9, the changes in the underlying game statistics are likely less, but are caused just BlitzAnalysiz() colleting data more players and especially more new/less active players.

Update 6.0

WR vs. Battles played - 6.0

Update 6.9

WR vs. Battles played - 6.9

Graph templates

Now the code is much more manageable weith new graph templates. Previously each graph was a copy-paste from the previous similar one (and with little changes along the line) making it hard to manage the code as I discovered issues and fixed bugs. I can now add a new graph (as long as I have a template for the graph type), just with few lines of code like this:

res <- head(stats.update[DT_filter_battles_tank(all.battles, all.battles.new, tier, is_premium), .('Average WR' = mean(WR), 
                             'Player WR' = mean(WR.global), 
                             'Players' = uniqueN(account_id), 
                             'Battles' = sum(all.battles), 
                             'Premium' = first(is_premium)), 
                         by=name ][Players >= min_players][ order(-`Average WR`)],n=topN);
res <- prep_plot_tank(res,'Average WR')
title = get_plot_title_top_tanks('Average WR', topN = 20)
plot_col_discrete_2Y(res,title, update, 'Tank', 'Average WR', 'Player WR', fill_var = 'Tank type')
...instead of this:

In addition for the graph templates makin me happier, those ensure more consistent look and feel and allow me to easily add new graphs - there is never enough of those, right?

Unfiltered graphs

For couple of gprahs I have added unfiltrered (i.e. all players) versions of those. Blitz has huge number of players who just play few games during the whole update. More than 10% of the players play less than e-i-g-h-t (8) battles during an update. And only small share of those players are ever looked at BlitzStars or happen to be recorded into replays sent to WoTinspector.com, therefore never ending up into Blitzanalysiz.com account database. For this reason I filter players based on minimun battle count requirement for many of the graphs. Otherwise the graphs would show players with 100% WR where in fact they had only one (lucky) game during the whole update.

Unfiltered Player WR distribution