Permalink
Browse files

start of test app gchart

git-svn-id: https://pyjamas.svn.sourceforge.net/svnroot/pyjamas/trunk@1325 7a2bd370-bda8-463c-979e-2900ccfb811e
  • Loading branch information...
1 parent a66830a commit 0e8e6dae0d4aaeb0bd709567cfc5ce170252c7c8 lkcl committed Aug 27, 2009
Showing with 982 additions and 59 deletions.
  1. +19 −0 examples/gcharttestapp/GChartExample00.py
  2. +381 −0 examples/gcharttestapp/GChartTestApp.py
  3. +52 −0 examples/gcharttestapp/GChartTestAppUtil.py
  4. +29 −0 examples/gcharttestapp/public/.svn/all-wcprops
  5. +18 −0 examples/gcharttestapp/public/.svn/dir-prop-base
  6. +164 −0 examples/gcharttestapp/public/.svn/entries
  7. +5 −0 examples/gcharttestapp/public/.svn/prop-base/alternating-black-white-row.gif.svn-base
  8. +5 −0 examples/gcharttestapp/public/.svn/prop-base/red.gif.svn-base
  9. +39 −0 examples/gcharttestapp/public/.svn/text-base/GChartTestApp.html.svn-base
  10. BIN examples/gcharttestapp/public/.svn/text-base/alternating-black-white-row.gif.svn-base
  11. +94 −0 examples/gcharttestapp/public/.svn/text-base/gcharttestapp.css.svn-base
  12. BIN examples/gcharttestapp/public/.svn/text-base/red.gif.svn-base
  13. +40 −0 examples/gcharttestapp/public/GChartTestApp.html
  14. BIN examples/gcharttestapp/public/alternating-black-white-row.gif
  15. +94 −0 examples/gcharttestapp/public/gcharttestapp.css
  16. BIN examples/gcharttestapp/public/red.gif
  17. +3 −3 library/pyjamas/chart/Annotation.py
  18. +3 −5 library/pyjamas/chart/AnnotationLocation.py
  19. +7 −10 library/pyjamas/chart/Axis.py
  20. +3 −5 library/pyjamas/chart/Curve.py
  21. +8 −10 library/pyjamas/chart/GChart.py
  22. +3 −5 library/pyjamas/chart/GChartWidgets.py
  23. +3 −3 library/pyjamas/chart/HovertextChunk.py
  24. +3 −5 library/pyjamas/chart/Point.py
  25. +3 −5 library/pyjamas/chart/Symbol.py
  26. +3 −5 library/pyjamas/chart/SymbolType.py
  27. +3 −3 library/pyjamas/chart/TickLocation.py
  28. 0 library/pyjamas/chart/__init__.py
@@ -0,0 +1,19 @@
+
+from pyjamas.chart import GChart
+
+"""*
+* Defines a scatter-plot of x*x vs. x.
+"""
+class GChartExample00(GChart):
+ def __init__(self):
+ self.setChartTitle("<b>x<sup>2</sup> vs x</b>")
+ self.setChartSize(150, 150)
+ self.addCurve()
+ for int i = 0; i < 10; i++)
+ self.getCurve().addPoint(i,i*i)
+ self.getCurve().setLegendLabel("x<sup>2</sup>")
+ self.getXAxis().setAxisLabel("x")
+ self.getYAxis().setAxisLabel("x<sup>2</sup>")
+
+
+
Oops, something went wrong.

0 comments on commit 0e8e6da

Please sign in to comment.