Hi,

We had several requests about the SRF D3 format and since we tumbled
into problems while testing 1.19beta we decided to rewrite the
existing interface.

We think that the new SRF D3 re-implementation is easier to
understand, better structured and allows more flexibility for people
who want to add new D3 chart renderers within SRF. But not only SRF D3
underwent some changes, D3.js itself was restructured therefore those
changes apply to the new SRF D3 as well using now D3 2.8.1.

## Changes

# A major change is that SRF_D3Treemap.php, SRF_D3Line.php and
SRF_D3Bar have been seized and been replaced by SRF_D3Chart.php.

# SRF_D3Chart.php [1]  (using the SMWAggregatablePrinter class) is
sharing the same code basis as jqPlot [2] and SRF JitGraph [4]

# All JavaScript code has been outsourced (ext.srf.d3.chart...)

# SRF D3 now expects ResourceLoader to work

# Data objects are now transferred via mw.config.get/mw.config.set
instead any inline html

# SRF_D3Chart.php parameter ['renderer'] will now provided the
selection option for available D3 chart renderer

# The bar chart (ext.srf.d3.chart.bar.js ) allows to swap datalables
(value,label), display chart title and chart bottom text.

# The line chart ( ext.srf.d3.chart.line.js ) display values in a grid
(this one need some freshness )

# The newly added donut chart (ext.srf.d3.chart.donut.js) allows to
swap datalables (value,label), display chart title and chart bottom
text.

# As for jqPlot the same color scheme [5] is added, using patterns
from colorCombs and color scales developed by Cynthia Brewer

# If someone is firm in JavaScript and interested in doing some work
with D3.js he/she will find an easy to follow guideline [6] to get
his/her JS working with SRF_D3Chart.php. (ext.srf.d3.prototype.js is
provided as JavaScript template)

## Unit tests

MW 1.18, MW 1.19beta

Chrome 11 &17, Firefox 3.7, IE 9

SMW 1.7.1 , SRF > 1.7.1

[1] https://github.com/mwjames/smw-srfd3

[2] https://github.com/mwjames/smw-srfjqplot

[4] https://github.com/mwjames/smw-srfjitgraph

[5] https://github.com/mwjames/smw-srfd3/wiki/Colour-schemes

[6] https://github.com/mwjames/smw-srfd3/wiki/SRF-D3-chart-renderer

PS: A patch for SMW SRF will be available in bugzilla.

Cheers

mwjames

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to