records per day/hour functions using ggvis