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.
https://he.wikipedia.org/w/index.php?title=%D7%A2%D7%9E%D7%95%D7%93_%D7%A8%D...
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@gmail.com wrote:
Hi!
(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[1], which asked for page view graphs to be added to action=info. The "WikimediaPageViewInfo"[2] extension has passed a security review, and should be deployed soon™.
If you want to try it out, there's a test wiki[3] which uses the pageview data for en.wp.
And for updates on the deployment status, please follow T125917[4].
[1] https://phabricator.wikimedia.org/T43327 [2] https://www.mediawiki.org/wiki/Extension:WikimediaPageViewInfo [3] http://bf-wmpageview.wmflabs.org/wiki/Taylor_Swift?action=info [4] https://phabricator.wikimedia.org/T125917
-- Legoktm
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l