loaded data, created variables and forloop to separate 'value' & 'date'