Extension talk:Graph/Demo/CategoryPie
Add topicAppearance
Latest comment: 8 years ago by Yurik in topic Broken with more than 500 subcategories
Broken with more than 500 subcategories
[edit]@Yurik: At wikt:Wiktionary_talk:Statistics#Lemmas_pie_chart the chart seems to be ignoring any subcategories past than the first 500. Is there any way to fix this? --Yair rand (talk) 05:06, 24 February 2016 (UTC)
- @Yair rand: I think this is API limitation. The graph calls
https://www.mediawiki.org/w/api.php?generator=categorymembers&gcmtitle=Category%3AExtensions+by+category&gcmtype=subcat&action=query&gcmlimit=max&prop=categoryinfo&formatversion=2&format=json
, which simply gets the maximum allowed number of subcategories, and for each it gets the number of pages in it. So there is no way to get just the largest or smallest ones, or more than 500. --Yurik (talk) 10:57, 24 February 2016 (UTC)