For (admittedly usually dev) Moodle sites located in a subdirectory of the apache root, the graphs can't be displayed because the template requests to the {...}graph.json.php files return 404 errors.
Prefixing the path with the actual wwwroot as defined in config.php fixes this.
Edit: Actually it doesn't (was testing in the wrong dev instance), but using a relative path does. These templates are only rendered in profile.php so this should be fine (I hope).
For (admittedly usually dev) Moodle sites located in a subdirectory of the apache root, the graphs can't be displayed because the template requests to the {...}graph.json.php files return 404 errors.
Prefixing the path with the actual wwwroot as defined in config.php fixes this. Edit: Actually it doesn't (was testing in the wrong dev instance), but using a relative path does. These templates are only rendered in profile.php so this should be fine (I hope).