port of GWT GChart to python pyjamas

L

lkcl

the excellent GWT Chart Library, GChart:
http://code.google.com/p/gchart/
is being ported to python, to run under the pyjamas [desktop / web]
widget set:
http://pyjamas.svn.sourceforge.net/viewvc/pyjamas/trunk/library/pyjamas/chart/
approximately 15 of the 30 examples and 1 of the 90 test charts have
been ported already, enough to show that the libray is in a mostly
useable state, even after only three days. pie-charts are proving
slightly problematic (as GChartExample24, which is a pie chart editor,
shows).

on the TODO list is:
* the rest of the examples and test charts
* GWT's NumberFormat (a basic one is in place right now)
* GWT's DateFormat (a basic one is in place right now)
* a basic implementation of re.py (for use in pyjs)
* a port of http://code.google.com/p/gwt-canvas/ (for GChart
optimisation purposes)

conversion of the examples from java to python is pretty
straightfoward: pyjamas/contrib/java2py.py is a _very_ basic java to
python converter which takes care of the majority of the global/search/
replace tricks, and also it converts all { } matched braces into the
correct python indentation levels. when using java2py.py, it relies
on well-formatted code (which 99.9% of GWT is, and 99.5% of GChart
is). code MUST be converted to actually _have_ braces, so a single-
line "if" statement will give a great deal of grief: pre-editing of
the java code is therefore sometimes required.

please note: no real experience of java programming is required to
convert java into python with java2py.py.

if anyone would like to help out with this porting project, feel free
to check out the source code and submit patches to http://code.google.com/p/pyjamas/issues
and contact http://groups.google.com/group/pyjamas-dev/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,823
Latest member
Nadia88

Latest Threads

Top