Last modified: 2014-02-12 23:38:06 UTC
Created attachment 9638 [details] svn diff patchfile This enhancement adds a new Result Format named "JitGraph", which allows the output of inline queries in a form of interactive graph. The result format is powered by JavaScript InfoVis Toolkit(http://thejit.org)
Created attachment 9639 [details] Screenshot showing the 'jitgraph' result format displaying a graph on a sandbox wiki
Created attachment 9640 [details] Source code for the enhancement This is in addition to the patch file, since I was unable to include a couple of .gif files into the patch due to the fact that they are binary. The patch however does provide FULL functionality with the exception of the image used to display the loading bar.
Hmmmpf... If some code has the below header, it might not be the best choice to base your work on... :) "FIXME: this code is just insane; rewrite from 0 is probably the only way to get it right"
So thanks for the patch, I applied it in r108724. There are several issues with it though, some of which I fixed, but I don't have the time to take care of the others, so the format is disabled by default for now, as it does not work on MW 1.17 and later. The most notable issue is inline JS that breaks when using the resource loader. Please see these pages for more info: * https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_for_extension_developers * https://www.mediawiki.org/wiki/Manual:Coding_conventions * http://semantic-mediawiki.org/wiki/Writing_result_printers
Created attachment 9940 [details] svn diff patchfile
Created attachment 9941 [details] Source code for the enhancement
Can you provide a patch against master or perhaps even submit it on gerrit? https://www.mediawiki.org/wiki/Git