Template talk:Graph:PageViews

Works with subpages
Thanks for the template, it is helping enWS to investigate the readership. At the Wikisources, works are usually/often set as root page with (numerous) subpages. Is there a means to reflect in the use of the template, or a derivation, to capture views for a work and its subpages? The playing by some was said to indicate that just the root page is being counted in this model. This would be helpful to monitor whether users are reading the whole work, looking at specific components, etc. Thanks. — billinghurst  sDrewth  05:32, 22 February 2016 (UTC)
 * pageviews api only gives data about a single page, so the only option really is to insert multiple graphs, one for each subpage. I could design a graph with multiple lines, but you will still need to provide each subpage title individually, and with many subpages it might get crowded. CC: --Yurik (talk) 13:51, 9 March 2016 (UTC)
 * The Wikisources work differently than the Wikipedias, the WSes have collections of pages (root/subpages); multiple subpages while giving the data isn't particularly effective. — billinghurst  sDrewth  13:06, 10 March 2016 (UTC)

Strange graph given the available data
The dataset below is rendered by Graph:PageViews at nowiki and shows up as the graph to the right. But this is (sorry) wrong.

This dataset is a copy of data from.

A closer look reveals that the graph is smoothed over missing data (?), and then truncated (?), which gives a wrong impression. — Jeblad 6. mar. 2016 kl. 00:52 (CET)


 * , yes, this is a limitation of the Vega graphs and/or pageview api - if data is missing, pageview api does not return any values, and graph simply draws the line between all known points - e.g. if there is data on day 1,2, and 8, it will draw two lines: between 1st and 2nd day, and between 2nd and 8th day (smoothing it in the process). Graph does not insert any extra values. There has been some talks about it in the Vega community, so when something like that gets implemented, we can use it. In the mean time, the only thing we can do is ask pageview api to insert 0s, at least (in my example) as day 3 and day 7, thus drawing a line for 0. CC: . --Yurik (talk) 13:47, 9 March 2016 (UTC)
 * Missing data is Imputation (statistics), and it is a large field. Replacing missing data with zero (0) is only a partial solution.
 * My main concern with the graph is not missing data, but that the shown data is actually wrong. In this case there are three values for three consecutive days, with values 12 - 4 - 5. Compare this with the graph and it does not make sense at all. Jeblad (talk) 11:35, 10 March 2016 (UTC)

Encoding error
@Yurik: Encoding error when we request a page with  apostrophe (double encoding?). Example: n:ru:Викиновости:Статистика страниц/Men's Health назвал сотню самых сексуальных женщин 2013 года. --sasha (krassotkin) 07:04, 9 March 2016 (UTC)
 * , thanks, tracking. --Yurik (talk) 13:36, 9 March 2016 (UTC)

Sanitazing bug
Hello,. There is a bug in the template. try "Hello, World!" program. The code works well. The code on the article page, using default, does not work. Could you check this, please? IKhitron (talk) 21:39, 9 May 2016 (UTC)