Given how easy it is to integrate Exhibit into Xwiki, I think it would be a good idea to not "reinvent the wheel" for significant further development on the chart/plot features, but of course, commit the improvements that are here now if they don't break anything :-). Of course, this is somewhat "apples and oranges" since the existing xwiki implementation renders plain HTML; Exhibit is an Ajax monster that renders via a very abstract data model, what could best be described as "template-rule based programming meets web templates" ( http://people.csail.mit.edu/dfhuynh/research/papers/www2007-exhibit.pdf ).
One of the reasons for saying this is that I've "seen the light" (much like using Xwiki in the first place) and it is a javascript framework called "Exhibit": http://simile-widgets.org/exhibit/ http://simile.mit.edu/wiki/Exhibit/Getting_Started_Tutorial ... I've been making extensive use of it alongside Xwiki, and it is amazing: - Core features: - database: graph-based model, rich expression language, importers for many formats, exporters to many formats - browsing: sort, filter, filter by numeric ranges, text search - user interface: - html-base UI configuration - flexible layout - style-ability - css-like format language - visual coding - Visualizations: map, timeline, scatter plot, bar chart, pivot table http://simile.mit.edu/exhibit/examples/factbook/factbook-people.html is one example I've come across that demonstrates charting.... http://ryanlee.org/2008/03/rsy/rivalry.html demonstrates the timeplot etc. Of course, most of the examples focus on the more sexy features: Dipity<http://www.dipity.com/> ( http://www.dipity.com/premium ) for example, is a site that appears to fully reskin a customized Exhibit for that authentic "touched by a web designer" look .... Another interesting use is to display results from Solr/Flare: http://code4lib.org/node/154 http://wiki.apache.org/solr/Flare Regarding using Exhibit for Xwiki: I've updated my integration demo http://nielsmayer.com/xwiki/bin/view/Exhibit/Presidents4 ; I've also updated the sources ( http://nielsmayer.com/xwiki/bin/download/Exhibit/Presidents4/Presidents4Pkg.xar ) If you install the Xar, unless you register with google<http://code.google.com/apis/maps/signup.html>(for optional use of google maps) your map-based exhibits will have an annoying dialog you need to click away. Put your google-maps registration in XWiki.JavaScriptExtension[0] in the object editor on document Exhibit.Presidents4: (var exhibit_gmapkey="";). FYI, the Presidents4Pkg.xar also provides the "macro documents" Macros.jQuery and Macros.Exhibit that allow you to easily use Exhibit in your Xwiki-based documents via the following preamble ( see http://nielsmayer.com/xwiki/bin/view/Exhibit/Presidents4?viewer=code ) ## ## Presidents example JSON data in XWiki.JavaScriptExtension[1] ## Note XWiki.JavaScriptExtension[0] defines JS vars exhibit_views and ## exhibit_gmapkey needed by "Macros.Exhibit" ## $xwiki.jsx.use("$doc.fullName")## ## ## Load and initialize jQuery, before Exhibit ## #includeMacros("Macros.jQuery")## #jquery_xwiki_init()## ## ## Load and initialize Exhibit Javascript and CSS ## #includeMacros("Macros.Exhibit")## #exhibit_xwiki_init()## ## ## Presidents example Stylesheet in XWiki.StyleSheetExtension[0] ## $xwiki.ssx.use("$doc.fullName")## ... ((create DOM in wikimarkup and HTML here)) ... ############################################################################## ## Fire Up Exhibit to process all ex:* markup and Json data into a UI. ############################################################################## #exhibit_create()## Niels http://nielsmayer.com On Tue, Jun 9, 2009 at 11:39 PM, Asiri Rathnayake < asiri.rathnay...@gmail.com> wrote: > Hello Devs, > > I have been examining Dan Miron's patches for > http://jira.xwiki.org/jira/browse/XWIKI-3313 & > http://jira.xwiki.org/jira/browse/XWIKI-2883 and they are working fine. > > However I think there are few improvements / refactorings that should be > done before comitting the code. Most importantly, I would like us to agree > upon the xwiki-chart api and xwiki-chart-macro format ... _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs