 STATUS_NEW = 0
 STATUS_SUCCESS = 1
 STATUS_FAILED = 2
+
 
 $ ->
     app = window.coviolations

                            parseInt(plot[1], 10) or 0


    collection = new app.models.TaskCollection()
    collection.fetch
        data:

            data.normalise()

            _.each _.keys(data.violations), (name) =>
                colorer = new PlotColorer

                datasets = _.map _.values(data.violations[name].plots), (plot) =>
                    preparedPlot = _.flatten [_.map(_.range(10), -> 0), [plot.reverse()]]

                    _.extend
                        data: _.last preparedPlot, 10
                    , colorer.getColor()

                view = new app.views.TrendChartView
                    labels: _.range(10)
