                 position: "nw"
             xaxis:
                 tickSize: [1, "day"],
-                min: moment().subtract('days', 27),
-                max: moment(),
+                min: today().subtract('days', 27),
+                max: today(),
                 mode: "time",
                 daysNames: days,
                 axisLabel: 'Day',

        width = element.width()
        element.height(width / 2)

        days = _.map([27..0], (x) ->
            moment().hour(0).minute(0).subtract('days', x)
        )
        data = []
        for d in _.values(dataToDraw)

        options =
            xaxis:
                tickSize: [1, "day"],
                min: today().subtract('days', 27),
                max: today(),
                mode: "time",
                daysNames: days,
                tickLength: 0
