Jump to content

Help:Converting Graphs

From Wikipedia, the free encyclopedia

Due to security issues, the Graph Extension is no longer usable across most mediawiki sites. The replacement is the Chart Extension. In the wake of this change, all graphs using the graph extension now look like this:

As of July 2025, 14,604 pages use the graph extension (these are enumerated here Category:Pages using the Graph extension). However due to limitations of the chart extension, not all of them can be ported over. Notably, page view statistics (which are present on many talk pages), and airport data cannot be ported.

What can't be ported automatically?

[edit]

Currently many airports have Template:Airport-Statistics, which is not portable due to chart extension limitations. In general, any graph that somehow generates data likely cannot be supported yet.

What can be easily ported

[edit]

Bar, line, and pie charts with the data embedded in the page are the easiest to port.

Method 1: GraphBot

[edit]

Simply change the template name from Template:Graph:Chart or whatever is being used to Template:PortGraph. Additionally it is required that the name parameter is present, and there is an optional title parameter. After making this change, the page is added to GraphBot's queue, and will be processed and converted shortly.

First activate the user script on commons and then copy/paste the graph data into the modal while creating the tabular page with the appropriate name (i.e. Internet Usage.tab) this will generate both the chart and tab file after clicking the buttons named "Convert to .tab" and "Convert to .chart".