You are not logged in Log in Join
You are here: Home » Members » Chui Tey » Wiki for product releases » ZGDChartWiki » wikipage_view

Log in
Name

Password

 
 
FrontPage »

ZGDChartWiki

Welcome

Zope 2.7 Required for ZGDChart 0.6.5

If you are using Zope 2.6 or older, use ZGDChart 0.6.4 The binaries for 0.6.5 have been compiled against Python 2.2

Building the gdchart module

The RedHat? GD binaries work fine with SuSE Linux (6.4/7.0). You don't have to compile your own ones ...

If you are having trouble building gdchart module on your platform, have a look at the survival guide. I've had a few reports of build difficulties.

I only have access to a Win9x box, so I can't tell you what's wrong with Linux or Solaris builds. I can only suggest that the makefiles have been doctored to get all the libraries working on my system. Hung Jung Lu had very kindly provided the Linux binaries for your convenience. The prebuilt libraries (libgd.a, libjpeg.a etc) are useless if you are not building on Win9x systems. You'd have to delete them and rebuild them again.

If you succeed in building the module for your platform, post it here for the benefit of everybody. Thanks!

Solaris Binaries (up to Zope 2.3)

Marcus Bursik took the time to contribute the Solaris binaries http://www.zope.org/Members/teyc/ZGDChart/gdchart.so Included in 0.5b

Linux Binaries (Zope 2.4)

Chris Withers provided the Linux binaries for Zope 2.4 gdchart.so (302 kb)

Chris reports

The grid lines were very close for dense data that it grays out the background.

A quite simple method to receive bigger fonts and not so narrow lines:

  1. I set the original size of zgdchart as small as possible, e.g. width 250 and height 90 pixels
  2. I size the target place in the dtml-document 400 respectively 290 pixels.

How-to change output image format

Renato De Giovanni provided this short how to:

  1. download "gdchart-py-0.5.tar.gz" from http://athani.pair.com/msteed/software/gdchart/
  2. untar, unzip and compile the library (by default gif and jpeg creation are already enabled)
  3. copy "gdchart.so" to your ZGDChart directory.
  4. Edit ZGDChart.py and add the following line on the end of "_setOption" method:

    eval("option(format=GDC_JPEG)")

    note 1

    format codes are: GDC_PNG, GDC_GIF and GDC_JPEG (default is png).

    note 2

    I used gnu/linux.

This is a ZWiki web. See the ZWikiLinks and the HelpPage for more information about ZWiki.

ZGDChart broken? --[mdupont]?, 2004/01/13 08:32 EST reply
I've been trying to install ZGDCarts? into a clean plone installation, without luck. I copied the directory structure to the products dir, and after restarting plone, the product IS listed in the products folder, but the examples report it broken, and it doesn't appear in th add item drop list.

Any hints? Mariano

ZGDChart broken? --[mdupont]?, 2004/01/13 12:00 EST reply
This is what the log tells: 2004-01-13T12:06:21 PROBLEM(100) ZODB Could not import class ZGDChart from module Products.ZGDChart.ZGDChart

Problem Solved --[mdupont]?, 2004/01/14 08:45 EST reply
Version 0.6.5 is for Zope 2.7, while for Zope 2.6.x, version 0.6.4 must be used.

... --[d2m]?, 2005/04/15 10:56 EST reply
svogel just posted a windows binary he built on windows with python 2.3 and Zope 2.7.2.