Google Charts in Zope

MatthewWilkes's picture

This afternoon was spent tidying and open sourcing packages that we’ve been meaning to release back to the community for a long, long time. Today’s lucky winner was teamrubber.googlechart (formerly ZGoogleChart) written by Richard Wilson. This also has the honour of being the first product released in our namespace.
teamrubber.googlechart is a Zope2ish wrapper for pygooglechart, it provides an object that can be added to the ZMI to configure some standard options such as colours to be used which then exposes a very basic API. The most useful (in our humble opinion) charts are there already, but we’re open to suggestions as to what should be supported next.

<img tal:attributes='src
  python:here.chart.getSimpleLineChart(data={
                "1":[1,2,3],
                “2″:[3,2,1]
                })’
/>

No automated tests yet, coming in 0.2.1. There are also a couple of known bugs with large data points, but we thought we’d open for comments/suggestions sooner rather than later.
 http://pypi.python.org/pypi/teamrubber.googlechart/0.1 

Organization: Plone Foundation Original: Source