 var serie = {
          "name": name,
          "data": []
        };

        if (name in dataMap) {
          serie = dataMap[name]
        }

        serie.data.push(r)

/*)*/

        dataMap[name] = serie
      }

    }

    function overviewGraph() {
      var res = [];

      for (k in dataMap) {
        var serie = dataMap[k];

        res.push({
          "name": serie.name,
          "data": serie.data.map(function(r) {
            return {
              x: 1000 * r.ts,
              y: r.time_sy