function updateData() {
  $.getJSON(window.location + 'data', {
    measure: _store.measure,
    dag: _store.dag,
    id: _store.id
  }, function (data) {
    var array = [];
    for (var key in data) {
      array.push({ value: data[key].value, date: new Date(data[key].ds) });
    }
    _store.data = array;
    _store.updating = false;
    DetailViewStore.emit(DATA_UPDATE_EVENT);
  });
}
// The rows retrieved from the server with values and dates
The rows retrieved from the server with values and dates
The rows retrieved from the server with values and dates
function updateData() {
  $.getJSON(window.location + 'data', {
    measure: _store.measure,
    dag: _store.dag,
    id: _store.id
  }, function (data) {
    var array = [];
    for (var key in data) {
      array.push({ value: data[key].value, date: new Date(data[key].ds) });
    }
    _store.data = array;
    _store.updating = false;
    DetailViewStore.emit(DATA_UPDATE_EVENT);
  });
}
function updateData ( ) { $ . getJSON ( window . location + 'data' , { measure : _store . measure , dag : _store . dag , id : _store . id } , function ( data ) { var array = [ ] ; for ( var key in data ) { array . push ( { value : data [ key ] . value , date : new Date ( data [ key ] . ds ) } ) ; } _store . data = array ; _store . updating = false ; DetailViewStore . emit ( DATA_UPDATE_EVENT ) ; } ) ; }
The rows retrieved from the server with values and dates
The rows retrieved from the server with values and dates