Page MenuHomePhabricator

Collaborative way to generate SVG/PNG graphs using Lua modules
Open, Needs TriagePublic

Description

See also T66460: Dynamically generate files with Scribunto, which may overlap/duplicate.

Extension:EasyTimeline (https://www.mediawiki.org/wiki/Extension:EasyTimeline) lacks some essential features and doesn't support complex text rendering capability needed for scripts other than Latin. Wikipedia community also created hand crafted family tree graphs, e.g. en:Template:Inglis family tree (https://en.wikipedia.org/wiki/Template:Inglis_family_tree), using HTML tables hack. Now that we have a proper programming language support on Wikipedia wikis, it would be nice if SVG/PNG graphs could be generated using Lua script or wikicode by community, something like mw:Extension:Inline SVG extension (https://www.mediawiki.org/wiki/Extension:Inline_SVG_extension) but updated and ready to use, or adopting one of Lua bindings of Cairo graphic library. (http://cairographics.org/bindings/)

--ebrahimtalk 23:16, 9 November 2015 (UTC)

This card tracks a proposal from the 2015 Community Wishlist Survey: https://meta.wikimedia.org/wiki/2015_Community_Wishlist_Survey

This proposal received 6 support votes, and was ranked #81 out of 107 proposals. https://meta.wikimedia.org/wiki/2015_Community_Wishlist_Survey/Miscellaneous#Collaborative_way_to_generate_SVG.2FPNG_graphs_using_Lua_modules

Event Timeline

DannyH created this task.Dec 5 2015, 12:38 AM
DannyH raised the priority of this task from to Needs Triage.
DannyH updated the task description. (Show Details)
DannyH moved this task to Wishlist 51-on on the Community-Wishlist-Survey-2015 board.
DannyH added a subscriber: DannyH.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptDec 5 2015, 12:38 AM
IMPORTANT: If you are a community developer interested in working on this task: The Wikimedia Hackathon 2016 (Jerusalem, March 31 - April 3) focuses on #Community-Wishlist-Survey projects. There is some budget for sponsoring volunteer developers. THE DEADLINE TO REQUEST TRAVEL SPONSORSHIP IS TODAY, JANUARY 21. Exceptions can be made for developers focusing on Community Wishlist projects until the end of Sunday 24, but not beyond. If you or someone you know is interested, please REGISTER NOW.
DannyH updated the task description. (Show Details)Feb 6 2016, 12:27 AM
DannyH set Security to None.
Yurik added a subscriber: Yurik.Jan 11 2017, 7:21 AM

Same as T66460#2933038:
I think we should reject this task, because Lua can already generate <graph>...</graph> chart -- that's what Template:Graph:Chart actually does, or, better yet, use one of the templates like Pie from row or Line chart to plot data directly from a dataset table on Commons.