I'm with a simple doubt in javascript.
I have a array load by server:
var dados = [{'ano':2016,'id':1,'mes':1,'valor':87},{'ano':2016,'id':2,'mes':2,'valor':17},{'ano':2016,'id':3,'mes':3,'valor':26}]
After I get the values that I need:
var valores = new Array();
for( var i=0; i < dados.length; i++) {
valores.push(dados[i].valor);
}
Now is the doubt. How can I load the values to Chart.js?
var lineChartData = {
datasets : [{
//ommited others configs..
data : valores (I would like load de values of valores here)
}]}

valoresdata to be presented in, String, Array, Oblect..?datasets: [{data: valores}]is not supposed to do it correctly? Você já não está passando/atribuindovaloresadata?