We've gotten a number of requests for providing again a way to do page-view graphs as was doable on Graphs (cf T334940). This remains a key post-MVP requirement, and it would be nice to get it going as we have most of the infrastructure needed now.
Graphs was doing client-side REST API fetching of the page view data, which is exposed into pageinfo data by PageViewInfo:
* https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/PageViewInfo/+/refs/heads/master/includes/Hooks.php#68
* https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/PageViewInfo/+/refs/heads/master/includes/WikimediaPageViewService.php
It's also available via action API: https://www.mediawiki.org/w/api.php?action=query&titles=Main_Page&prop=pageviews
So the data's available, but we have no way to query it as a data source in Charts at this time.
Possible changes to allow thisCurrent plan is to remedy this by exposing the page views data to Lua code which can fill out the data set in a transform, either:
* explicit alternate data sources (non-Data: pages)
* wrapper Data: pages which query a single page (or have arguments)
* Lua API to access the data in a transform and fill in a data skeleton there (T388434 etc) (with an argument set in the chart fixed)
* -> use ExternalData extension or similar with allow-listing of rest API targets
* -> above, but with argument overridden on the invocation (would need to be added)something like ExternalData but tuned to our specific needs
This is outside scope of the MVP for Charts Task Force but is a good stretch goal / potential work for Community Wishlist and should be prioritized sooner rather than later.