function updateData() {
  $.getJSON(
    window.location + 'data',
    {
      measure:_store.measure,
      dag: _store.dag,
      id: _store.id
    },
    function(data) {
      const array = [];
      for (const 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);
    });
}
// Fires of an Ajax get request to the server to get values and dates for graph
Fires of an Ajax get request to the server to get values and dates for graph
Fires of an Ajax get request to the server to get values and dates for graph
function updateData() {
  $.getJSON(
    window.location + 'data',
    {
      measure:_store.measure,
      dag: _store.dag,
      id: _store.id
    },
    function(data) {
      const array = [];
      for (const 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 ) { const array = [ ] ; for ( const 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 ) ; } ) ; }
Fires of an Ajax get request to the server to get values and dates for graph
Fires of an Ajax get request to the server to get values and dates for graph