Ho un dataset che esce così....




results = [
{Mese: "December", Importo: "1000", Nome: "Mario"},
{Mese: "December", Importo: "1275", Nome: "Gigi"},
{Mese: "December", Importo: "1300", Nome: "Antonio"},
{Mese: "November", Importo: "1100", Nome: "Mario"},
{Mese: "November", Importo: "1375", Nome: "Gigi"},
{Mese: "November", Importo: "1310", Nome: "Antonio"}];
Vorrei ottenere un grafico ove asse x i mesi asse y gli importi ed avere una line per ogni persona ma non riesco a riportare gli importi giusti in (XXImporto).....una mano per favore...

Codice PHP:

               
results 
= [
                       {
Mese"December"Importo"1000"Nome"Mario"},
                       {
Mese"December"Importo"1275"Nome"Gigi"},
                       {
Mese"December"Importo"1300"Nome"Antonio"},
                       {
Mese"November"Importo"1100"Nome"Mario"},
                       {
Mese"November"Importo"1375"Nome"Gigi"},
                       {
Mese"November"Importo"1310"Nome"Antonio"}];
                var 
Mese = [];
                var 
Nome = [];
                var 
Importo= [];
                
results.forEach(function(data) {
                  
Mese.push(data.Mese);
                  
Nome.push(data.Nome);
                  
Importo.push(data.Importo);
                });
                var 
uniqueMese = [];
                $.
each(Mese, function(iel){
                    if($.
inArray(eluniqueMese) === -1uniqueMese.push(el);
                });
                var 
uniqueNome = [];
                $.
each(Nome, function(iel){
                    if($.
inArray(eluniqueNome) === -1uniqueNome.push(el);
                });
                    var 
data = {
                        
labelsuniqueMese,
                    
datasetsfillChartJsColors('line',[])
                }
                var 
XXNome = [];
                
uniqueMese.forEach(function(XXaa) {
                  
XXNome = [];
                  
XXImporto = [];
                  
uniqueNome.forEach(function(XXbb) {
                    
XXImporto.push(Importo[b]);                   
                  }); 
Help please.....