Last modified: 2012-08-03 14:51:29 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 T37627, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35627 - [SRF] jqPlot re-factoring v1.8
[SRF] jqPlot re-factoring v1.8
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticResultFormats (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-31 15:17 UTC by MWJames
Modified: 2012-08-03 14:51 UTC (History)
2 users (show)

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


Attachments
Patch against SRF revision 114488 (422.81 KB, application/octet-stream)
2012-03-31 15:17 UTC, MWJames
Details

Description MWJames 2012-03-31 15:17:14 UTC
Created attachment 10357 [details]
Patch against SRF revision 114488

This bugzilla report holds information and patches about SRF jqPlot v1.8 which includes a major re-factoring effort in how SRF communicates with the jqPlot plug-in in order to make it compatible with SRF 1.8 and MW 1.19. This patch requires the ResourceLoader and requires MW 1.17+, SWM 1.7.2+. 

## Major changes 

All inline javascript have been striped and moved into external resource files  (../jqPlot/resources/..).

ext.srf.jqplot.bar.js is designed so it can be used for both and SRF_jqPlotSeries.php

ext.srf.jqplot.pie.js share instructions for the pie and donut renderer.

ext.srf.jqplot.bubble.js instructions to render bubble chart 

An experimental new format (jqplotseries, SRF_jqPlotSeries.php) has been added to allow numercial data sets to be displayed as chart series. The module does work but need thorough testing and shouldn't not be used in production.

SEF jqPlotSeries supports  bar, line, stacked bar, and bubble charts. Bubble chart data sets have to follow jqPlot's [x, y, radius, <label or object>] convention.

The plug-in has been updated to version 1.0.0b2_r947.

## Further information 

The changes in the SRF jqPlot module reflecting similar changes in SRF D3 and SRF JitGraph.

Detailed information about the changes and examples can be found at https://github.com/mwjames/smw-srfjqplot/

## Tests
Tests have been carried out on the following environment.

SWM 1.7.1 and SRF 1.7.1 and MW 1.18, MW 1.19.0beta2

Chrome 11.0.700.3 and 17.0.963.66 m

IE 9,

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23 ( .NET CLR 3.5.30729; .NET4.0C)
Comment 1 Jeroen De Dauw 2012-04-01 01:20:03 UTC
Awesome!

Applied in r114644 :)
Comment 2 MWJames 2012-04-01 01:57:45 UTC
That was quick, thanks.

One minor thing I recognized when syncing against the trunk is that some old files still hoovering in the SemanticResultFormats/jqPlot directory which should have been vanished.

Anything besides [1] should be deleted from the /SemanticResultFormats/jqPlot directory since related files have been moved to /SemanticResultFormats/jqPlot/resources  

[1] README.md, SRF_jqPlotBar.php, SRF_jqPlotPie.php, SRF_jqPlotSeries.php
Comment 3 Jeroen De Dauw 2012-04-01 16:24:03 UTC
Right, removed stuff in r114648 :)
Comment 4 MWJames 2012-08-03 14:51:29 UTC
jqPlot re-factoring Part II

https://gerrit.wikimedia.org/r/#/c/17436/

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


Navigation
Links