DataSF / open-data-explorer

To promote exploration and use of open data - currently in beta
http://edge.explore.datasf.org
MIT License
12 stars 2 forks source link

Dates not displaying correctly on timeseries chart by year #209

Closed jasonlally closed 7 years ago

jasonlally commented 7 years ago

See: http://datasf-explorer.tk/#/public-safety/sfpd-incidents-from-1-january-2003/tmnf-yvry/chart_experimental?q=%7B%22selectedColumn%22%3A%22date%22%7D

Years are off by 1 year. 2002 should be 2003, 2016 should be 2017.

screen shot 2017-01-22 at 10 47 02 pm

j9recurses commented 7 years ago

This is fixed. January starts at 0 in javascript! Learn something every day!

screen shot 2017-01-24 at 5 04 35 pm