Last modified: 2014-02-12 23:38:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34877, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32877 - [Enhancement] Interactive Graphs using JavaScript InfoVis Toolkit
[Enhancement] Interactive Graphs using JavaScript InfoVis Toolkit
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SemanticResultFormats (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-08 19:34 UTC by Alex Shapovalov
Modified: 2014-02-12 23:38 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
svn diff patchfile (816.21 KB, application/octet-stream)
2011-12-08 19:34 UTC, Alex Shapovalov
Details
Screenshot showing the 'jitgraph' result format displaying a graph on a sandbox wiki (224.19 KB, image/png)
2011-12-08 19:36 UTC, Alex Shapovalov
Details
Source code for the enhancement (195.07 KB, application/x-gzip)
2011-12-08 19:40 UTC, Alex Shapovalov
Details
svn diff patchfile (3.70 KB, patch)
2012-02-01 17:14 UTC, Alex Shapovalov
Details
Source code for the enhancement (607.42 KB, application/x-gzip)
2012-02-01 17:15 UTC, Alex Shapovalov
Details

Description Alex Shapovalov 2011-12-08 19:34:17 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)
Comment 1 Alex Shapovalov 2011-12-08 19:36:12 UTC
Created attachment 9639 [details]
Screenshot showing the 'jitgraph' result format displaying a graph on a sandbox wiki
Comment 2 Alex Shapovalov 2011-12-08 19:40:25 UTC
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.
Comment 3 Jeroen De Dauw 2012-01-12 14:09:12 UTC
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"
Comment 4 Jeroen De Dauw 2012-01-12 14:33:20 UTC
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
Comment 5 Alex Shapovalov 2012-02-01 17:14:31 UTC
Created attachment 9940 [details]
svn diff patchfile
Comment 6 Alex Shapovalov 2012-02-01 17:15:58 UTC
Created attachment 9941 [details]
Source code for the enhancement
Comment 7 Jeroen De Dauw 2013-01-08 00:34:56 UTC
Can you provide a patch against master or perhaps even submit it on gerrit?

https://www.mediawiki.org/wiki/Git

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links