he.wiki has already enabled it by inserting Graph:PageViews template into
the info template, but yours does look cleaner. The graph will show only if
you did not modify your interface language in the Hebrew wiki, or if you
are not logged in.
One thing that concerns me though - you seem to get all the Vega and d3
code and graph data during the page load, yet you only show the graph on
click. Seems to take a lot of extra time and very wasteful. Also, it
doesn't work for older browsers.
On Fri, Mar 11, 2016 at 4:33 AM, Legoktm <legoktm.wikipedia(a)gmail.com>
(I meant to send this out earlier but got distracted by other things :()
At the Wikimedia developer summit, Addshore and I started working on a
MediaWiki extension to resolve T43327, which asked for page view
graphs to be added to action=info. The "WikimediaPageViewInfo"
extension has passed a security review, and should be deployed soon™.
If you want to try it out, there's a test wiki which uses the
pageview data for en.wp.
And for updates on the deployment status, please follow T125917.
Wikitech-l mailing list