Skip to content

Commit

Permalink
Fix interactive chart periods
Browse files Browse the repository at this point in the history
  • Loading branch information
ghys committed Aug 22, 2016
1 parent 3fe345e commit 75522e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/widgets/chart/chart.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,12 @@
{
case 'h': startDate.setTime(startDate.getTime() - 60*60*1000); break;
case '4h': startDate.setTime(startDate.getTime() - 4*60*60*1000); break;
case '4h': startDate.setTime(startDate.getTime() - 4*60*60*1000); break;
case '8h': startDate.setTime(startDate.getTime() - 8*60*60*1000); break;
case '12h': startDate.setTime(startDate.getTime() - 12*60*60*1000); break;
case 'D': startDate.setTime(startDate.getTime() - 24*60*60*1000); break;
case '3D': startDate.setTime(startDate.getTime() - 3*24*60*60*1000); break;
case 'W': startDate.setTime(startDate.getTime() - 7*24*60*60*1000); break;
case '2W': startDate.setTime(startDate.getTime() - 2*7*60*60*1000); break;
case '2W': startDate.setTime(startDate.getTime() - 2*7*24*60*60*1000); break;
case '1M': startDate.setTime(startDate.getTime() - 31*24*60*60*1000); break; //Well...
case '2M': startDate.setTime(startDate.getTime() - 2*31*24*60*60*1000); break;
case '4M': startDate.setTime(startDate.getTime() - 4*31*24*60*60*1000); break;
Expand Down Expand Up @@ -183,4 +182,4 @@
}


})();
})();

0 comments on commit 75522e6

Please sign in to comment.