Thread:User talk:MWJames/SMW D3 charts/reply

Since I'm the only one who is driving the integration between D3 and SMW/SRF, I can say that currently available are two chart types as explained here and will be released as part of SMW/SRF 1.8. (A preview of the code is available here.)

Those two implemented chart/graph types are using the SMWAggregatablePrinter class with values defined as a simple array of [label, value] pairs which means that as for the moment data series are not possible and not planned. D3 chart corresponds to a similar approach held by jqplotchart/jqplotseries

One reason why D3 chart is released with SRF 1.8 is to show how easy the integration between D3 and SMW/SRF is achieved and allow access to chart types that yet have not been available.

I do think the available examples are self-explanatory and easy to understand (I tried to make comments where necessary) and I would encourage anyone with a vital interest in making this integration work to coordinate efforts.

D3 graph
A more comprehensive and elaborate integration is planned with D3 graph (which I have no idea when I have time to work on as part of the SRF D3 integration). Some preliminary notes on D3 graph can be found, but I'm sure the uploaded examples won't work because during now and then I had to change the data model and the SMWResultPrinter class has changed as well.

Wordcloud
Another example that uses D3 in connection with SMW/SRF 1.8 is wordcloud which is part of the tagcloud format.