updateDataPoint now accepts an array of data points