var sampleData = range(0, 40).map(function(i) {
return {
Number: i,
Square: Math.pow(i, 2),
Cube: Math.pow(i, 3)
}
});
$('#table').Meliorator('table', {
data: sampleData,
tableClass: 'originalTable'
});
$('#analytics').Meliorator('analytics-widget', {
data: parsedDataSet,
domainField: 'Number',
rangeField: 'Square',
domainAggregation: 'NONE',
renderAs: 'LINE'
});