Extract the granularity-picking code of the date ticker into a new function.
Extract the granularity-picking code of the date ticker into a new function.

mariolll/dygraphs,panuhorsmalahti/dygraphs,pshevtsov/dygraphs,mcanthony/dygraphs,socib/dygraphs,panuhorsmalahti/dygraphs,mantyr/dygraphs,socib/dygraphs,socib/dygraphs,panuhorsmalahti/dygraphs,reinert/dygraphs,witsa/dygraphs,petechap/dygraphs,mcanthony/dygraphs,reinert/dygraphs,Yong-Lee/dygraphs,Akiyah/dygraphs,petechap/dygraphs,grantadesign/dygraphs,kbaggott/dygraphs,socib/dygraphs,davidmsibley/dygraphs,mantyr/dygraphs,klausw/dygraphs,pshevtsov/dygraphs,jmptrader/dygraphs,mcanthony/dygraphs,vhotspur/dygraphs,pshevtsov/dygraphs,mantyr/dygraphs,petechap/dygraphs,cavorite/dygraphs,mantyr/dygraphs,danvk/dygraphs,Akiyah/dygraphs,Akiyah/dygraphs,grantadesign/dygraphs,mariolll/dygraphs,Yong-Lee/dygraphs,klausw/dygraphs,mcanthony/dygraphs,petechap/dygraphs,Yong-Lee/dygraphs,reinert/dygraphs,witsa/dygraphs,witsa/dygraphs,davidmsibley/dygraphs,jmptrader/dygraphs,klausw/dygraphs,vhotspur/dygraphs,danvk/dygraphs,jmptrader/dygraphs,kbaggott/dygraphs,witsa/dygraphs,pshevtsov/dygraphs,cavorite/dygraphs,timeu/dygraphs,timeu/dygraphs,mariolll/dygraphs,jmptrader/dygraphs,vhotspur/dygraphs,danvk/dygraphs,timeu/dygraphs,Akiyah/dygraphs,Akiyah/dygraphs,kbaggott/dygraphs,grantadesign/dygraphs,mcanthony/dygraphs,jmptrader/dygraphs,mariolll/dygraphs,grantadesign/dygraphs,danvk/dygraphs,Yong-Lee/dygraphs,kbaggott/dygraphs,klausw/dygraphs,danvk/dygraphs,reinert/dygraphs,pshevtsov/dygraphs,panuhorsmalahti/dygraphs,timeu/dygraphs,vhotspur/dygraphs,mantyr/dygraphs,witsa/dygraphs,davidmsibley/dygraphs,reinert/dygraphs,cavorite/dygraphs,grantadesign/dygraphs,klausw/dygraphs,vhotspur/dygraphs,Yong-Lee/dygraphs,davidmsibley/dygraphs,timeu/dygraphs,cavorite/dygraphs,petechap/dygraphs,kbaggott/dygraphs,panuhorsmalahti/dygraphs,davidmsibley/dygraphs,mariolll/dygraphs