This is mainly an example Web Part. I'd recommend to clone it and create your own Web Part.
You can alter this one, but it might break functionality on other places or when applying upgrades or a hotfix.
That being said; When you've cloned it:
You have to alter the Web Part Properties and Code.
ReloadData() method you can extend the switch logic for the StatisticsType based on what you extended in the previous step setting the fromDate (00:00 yesterday) and toDate (23:59? yesterdaor 00:00 today) values.