You are not logged in Log in Join
You are here: Home » Members » Chui Tey » gdchart-based product to draw charts

Log in
Name

Password

 
 

Folder icon gdchart-based product to draw charts

ZGDChart goes commercial

New URL: ZGDChart - Charting for Zope and Plone

As you all probably know and have experienced, putting together all the open source modules together and rebuilding is easier said than done. The gd module no longer links with the JPEG library, and freetype is running on version 2 now, even building the PNG library was a greater hassle than it had to be.

If you are looking for Windows binaries for ZGDChart on Zope 2.7, follow the above link for screenshots and other resources.

Chui

April 2003

Explode pie charts
Use PythonScripts as a data source.
ColorPickerTag thrown in for free!

Introduction

A simple chart class which generates plots dynamically using data from DTML or ZSQL. The output image format is PNG. For the SQL case, the chart plots the first two columns of a SQL query result.

This product uses Mike Steed's python extension to gdchart, version 0.6. It is based on gdchart0.951, which in turn uses gd1.8.1.

You can provide a comment/feedback by using Feedback to this page's author

Usage

  1. Drop a ZGDChart in your folder
  2. Bind it to a ZSQL query, or
  3. Bind it to a TinyTable, or
  4. Bind it to a DTML method
  5. Reference it from your document using <dtml-var mygraphid>

Wiki page

Some users have responded with patches and messages, I haven't had time to test and patch a distribution. Get the latest at the Wiki.

Samples

Here are some samples generated by ZGDChart.

Changes

Version 0.4.2.b introduces DTML data method. More chart styles are now supported. ZGDChart now also accepts runtime parameter overriding. Changes in this version are done by Hung Jung Lu.

Installation

For Windows and RedHat Linux 6.x, download ZGDChart_0.5b.tgz and untar it in your root Zope directory. Restart Zope.

From the root directory, import gdchartdemo.zexp from the Import/Export tab.

Refer to readme.txt for troubleshooting notes.

For other Unix-flavor platforms, you will need to build the gdchart.so shared library from the enclosed source. Place the generated gdchart.so in the ZGDChart's product folder (replace the existing gdchart.so.) Here are some basic instructions.

Version numbering

The version number is kept in sync with Michael Steed's gdchart.pyd module.

SQL Demo

The DTML data method comes with an automatic sample. For the SQL data method, an SQL example file is included with the distribution since 0.3.3. To import the example, click on the Import/Export tab, and import gdchartdemo.zexp. If everything goes well, you should be able to see 4 charts by viewing the index_html.

Bugs

If the SQL demo is broken on your platform, import gdchartdemo.zexp, delete the ZGDChart object named chartSales and then recreate it. Choose ZSQL for the Data Method. For the SQL connection, choose zsqlSales.

It is known that the Combo_HLC_Bar_3D chart style is currently not working. This is due to a problem in the gdchart Python module.

 Title   Type   Size   Modified   Status 
 A screenshot of the zgdchart demo screen Edit object Image 22 K 2000-08-30 published
 Change history Edit object Document 2 K 2003-04-08 published
 gdchart Solaris binary Edit object Software Release   2000-10-01 published
 linux Folder   2002-06-25 published
 sample1 Edit object Image 2 K 2000-09-15 published
 sample2 Edit object Image 2 K 2000-09-15 published
 sample3 Edit object Image 1 K 2000-09-15 published
 sample4 Edit object Image 1 K 2000-09-15 published
 ZGDChart 0.4.1 release Edit object News Item 1 K 2000-08-31 published
 ZGDChart 0.4.1(alpha) Edit object Software Release   2000-08-30 published
 ZGDChart 0.4.2.b released! Edit object News Item 1 K 2000-09-15 published
 ZGDChart 0.5 beta released Edit object News Item 1 K 2001-06-03 published
 ZGDChart 0.5 beta released Edit object News Item 1 K 2000-12-17 published
 ZGDChart 0.5 Binaries (Win32 and Linux) Edit object Software Release   2001-02-27 published
 ZGDChart 0.5.1 Binaries (Win32 and Linux) Edit object Software Release   2001-06-07 published
 ZGDChart 0.6.0 Binaries (Win32 and Linux) Edit object Software Release   2001-10-13 published
 ZGDChart 0.6.1Binaries (Win32 and Linux) BE (Babelized edition) Edit object Software Release   2001-11-02 published
 ZGDChart 0.6.2 Binaries (Win32, Linux, Solaris) BE (Babelized edition) Edit object Software Release   2001-11-30 published
 ZGDChart 0.6.3 Binaries (Win32, Linux, Solaris) BE (Babelized edition) Edit object Software Release   2003-04-08 published
 ZGDChart 0.6.4 Binaries (Win32, Linux, Solaris) BE (Babelized edition) Edit object Software Release   2003-04-08 published
 ZGDChart example Edit object Software Release   2000-03-21 published
 ZGDChart Product 0.3 (alpha) Edit object Software Release   2000-05-26 published
 ZGDChart Product 0.3 (alpha) Edit object Software Release   2000-06-05 published
 ZGDChart Product 0.3 (alpha) Edit object Software Release   2000-03-08 published
 ZGDChart Product 0.4.2.b Edit object Software Release   2000-09-15 published
 ZGDChart-0.6.5 Product Edit object Software Release   2003-09-10 published