Set data as an array.