[Zope-Annce] ZSparklines, a simple sparklines product for Zope
eric casteleijn
eric at infrae.com
Tue Oct 31 12:35:21 EST 2006
I'm pleased to announce ZSparklines, a simple Zope product to add
sparklines to any Zope application. You can find version 0.1 here:
http://www.infrae.com/products/zsparklines
ZSparklines is basically Joe Gregorio's spark cgi script (1.0.0), where
the cgi layer was replaced with a Zope layer, so it can be used as a
zope product.
It defines two simple views, sparkline_smooth and sparkline_discrete,
and an interface, ISparklinedata, which you need to implement in your
classes to use the sparkline views on them.
If you want to use sparklines for classes you have no control over, you
can write an adapter to implement the interface.
Any feedback, questions and suggestions for improvement are more than
welcome.
ZSparklines requires the Python Imaging Library.
The original cgi version can be found here:
http://bitworking.org/projects/sparklines/
--
- eric casteleijn
http://infrae.com
More information about the Zope-Announce
mailing list