Finally managed to get the graphs working in an Ajax tab in c9b880d4d4af56d406054e4119dc1c433bb7b150. The trick was to put the script generating the graph in team.blade.php (and not graph.blade.php) but make sure that the js function generating it is not called until the Graph tab is clicked. Otherwise it finds no place to draw it and crashes silently. I accomplished this by replacing
Finally managed to get the graphs working in an Ajax tab in c9b880d4d4af56d406054e4119dc1c433bb7b150. The trick was to put the script generating the graph in team.blade.php (and not graph.blade.php) but make sure that the js function generating it is not called until the Graph tab is clicked. Otherwise it finds no place to draw it and crashes silently. I accomplished this by replacing
with
Massive props to http://stackoverflow.com/questions/10870419/load-google-charts-via-ajax
Note: If you don't see the graphs immediately, don't panic, they take a few seconds to render