added total field to date histogram