SMW D3 charts

From semantic-mediawiki.org
Fragment of a discussion from User talk:MWJames

As for SMW/SRF this will not be the way we will handle JavaScript. We will always separate wiki content from "printer" logic and when looking further into the future, being able to separate user actions from wikipage actions is required in order to allow independent user actions (unrelated to the stored wikipage) to be handled by a JavaScript module.

As a side note, storing JavaScript in wikipages (as side the ContentHandler in MW 1.21 or GadgetModule) should be avoided because it can create security vulnerabilities.

23:59, 29 January 2013

Ah. I'm not at all familiar with the inner workings of SMW, etc. Let me back up a step then. Mike Bostock's gallery (https://github.com/mbostock/d3/wiki/Gallery) has a lot of really nice examples of d3 in action, most of which can serve as a basis for building one's own visualizations; what do you see as being the simplest way of using one of those to create a new d3chart charttype ?

Thanks, Andrew

17:38, 30 January 2013