Hi Neils, On Thu, Jul 2, 2009 at 12:27 PM, Niels Mayer <[email protected]> wrote:
On Thu, Jun 25, 2009 at 9:44 PM, Asiri Rathnayake < [email protected]> wrote:
Hi,
On Thu, Jun 25, 2009 at 11:53 PM, Niels Mayer <[email protected]> wrote:
Another interesting advanced JS data-visualization toolkit that would be useful to integrate in Xwiki.
http://vis.stanford.edu/protovis/ http://www.technologyreview.com/computing/22927/?nlid=2130 http://flare.prefuse.org/launch/apps/job_voyager
Protovis sounds cool, but the way xwiki macros work will make it difficult (or messy) to implement a macro that will have to depend on a JS library. What we can do is this:
* Implement the wiki-macro bridge: http://jira.xwiki.org/jira/browse/XWIKI-3213 (Basically this will allow you to convert any wiki content into your personal macro) - I'll finish this in a week or so.
* We use a JSX (?) to get protovis support.
* Neils can implement a js charting wiki-macro using protovis ;)
I want to ask other developers, Is this possible? (I have a confusion about macros + js working together)
I have Macros/JS working together all the time, using JSX. I'm certain it's possible, given the kinds of integration I've been able to do in Exhibit&Xwiki, e.g. http://nielsmayer.com/xwiki/bin/view/Exhibit/NPRpods3 ...
Here's a simple example, which are tests for my Xwiki integration of http://www.longtailvideo.com/players/jw-flv-player/ which is the media player used in the NPRpods3 application above: http://nielsmayer.com/xwiki/bin/view/Macros/JWPlayer?viewer=code
http://nielsmayer.com/xwiki/bin/view/Macros/JWPlayerJSPL_Test (xwiki integration of http://home5.inet.tele.dk/nyboe/flash/mediaplayer4/JW_API_xmpl_5-2-4-0.html with an improvement, the JWplayer example doesn't work on Linux/Firefox, mine does!) http://nielsmayer.com/xwiki/bin/view/Macros/JWPlayerJSPL_Test?viewer=code (wiki-code for above) http://nielsmayer.com/xwiki/bin/jsx/Macros/JWPlayerJSPL_Test (the javascript playlist from XWiki.JavaScriptExtension[0])
The wiki macro bridge has been released with 2.0M2. May be you can put it to test by trying to implement your chart macro ;) If you come across any problems while you are at it, we can improve wiki macro bridge :) Thanks. - Asiri