-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Bar chart not displayed in ASP.NET MVC using AJAX call #978
Comments
Including something like the line below in the success part of the AJAX call should solve the problem: window.myBar.update(); |
Calling update() would work, too, since the dataset would then be populated. It's worth noting that this isn't ASP.NET MVC specific. The same thing would happen with RoR, PHP, etc. |
@etairi Could you please let us know if this is working for you? |
Yes, it is working. I already noticed the problem and fixed it. Also thanks to @tiesont for the good answer! |
I have the following code segment:
When I check the console, for the arrays, I get the following values:
"Length is: 10"
Array [ "Team #1", "Team #2", "Team #3", "Team #4", "Team #5", "Team #6", "Team #7", "Team #8", "Team #9", "Team #10" ]
Array [ 74, 53, 38, 37, 92, 47, 40, 5, 22, 16 ]
This seems all fine to me. But, the graph is not displayed. It shows just this: http://prntscr.com/6edcyt. But if I enter manually the labels and the values, it works all fine. But, when I use an AJAX call it is not working. Any idea how to solve it?
The text was updated successfully, but these errors were encountered: