I have an array of objects with the following structure:
var data = [ {date: 2020-01-01, value: 1}, {date: 2020-01-03, value: 2}, {date: 2020-01-04, value: 2}, {d