Add method to get day index
First visualization with d3