             header = [ util.getLocaleString("stats_hit") ]
 
             for cell in series[0].data
-                header.push moment(cell.x * 1000).format("YYYY")
+                stampformat = @zoomLevelToFormat(cell.zoom)
+                header.push moment(cell.x * 1000).format(stampformat)
 
             output = [header]
 

                if val == "bar"
                    @setBarMode()
                else if val == "table"
                    @setTableMode(series)
                    @renderTable(series)

                unless val == "table"
                    graph.setRenderer val


        setExportUrl()

    zoomLevelToFormat : (zoom) ->
        stampFormats =
            "second" : "YYYY-MM-DD hh:mm:ss"
            "minute" : "YYYY-MM-DD hh:mm"
            "hour" : "YYYY-MM-DD hh"
            "day" : "YYYY-MM-DD"
            "month" : "YYYY-MM"
            "year" : "YYYY"
        return stampFormats[zoom]

    renderTable : (series) ->
        console.log "**************** series", series
        HTMLFormatter = (row, cell, value, columnDef, dataContext) -> value


