Go to any page with a graph. Press Download as PDF and open the file.
The PDF does not contain the Graph image.
Map Demo based on this page
Many graphs based on this page
Now it no longer returns code, but it doesn't show a graph image either.
I will be a lookout on this since I badly needed this feature on our project.
Thanks in advance.
As already announced in Tech News, OfflineContentGenerator (OCG) will not be used anymore after October 1st, 2017 on Wikimedia sites. OCG will be replaced by Electron. You can read more on mediawiki.org.