Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saludos, ¿que hago mal en el getJSON? #798

Open
ekos77 opened this issue Jun 12, 2020 · 0 comments
Open

Saludos, ¿que hago mal en el getJSON? #798

ekos77 opened this issue Jun 12, 2020 · 0 comments

Comments

@ekos77
Copy link

ekos77 commented Jun 12, 2020

$("#botonData").on("click", function(){
var NewData ="";
$.getJSON("FIle.json", function(result){
$.each(result, function(i, field){
NewData += "{ year: "+field.Data+", value: "+field.IM+"},";
});
morris1.setData(NewData); //Fail
//console.log(NewData); Ok
});
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant