In the following example, I am struggling to populate the object with the actual data that I have.
var dataset = {};
$.each(data.body, function( index, value )
{
dataset[index] = {
label: 'hello',
data: [0, 0, 200179, 280179, 33179, 220179, 220179, 210179, 200179, 280179, 33179, 220179],
borderWidth: 2
}
});
console.log(dataset);