[reportlab-users] Re: two Y-axes on bar/line chart

Marc Stober reportlab-users@reportlab.com
Tue, 13 Jul 2004 09:24:44 -0400

Hi Gert,

It is pretty easy to do this by creating two separate chart objects and
overlaying them on the same drawing.

Hope this helps,

Message: 4
From: "Gert Steyn" <gert@ise.co.za>
To: <reportlab-users@reportlab.com>
Date: Mon, 12 Jul 2004 12:21:12 +0200
Subject: [reportlab-users] two Y-axes on bar/line chart
Reply-To: reportlab-users@reportlab.com


Does anyone know if it is possible to get Reportlab to generate a bar/line
with two Y-axes?

I.e. Say I want a chart that shows the relationship between the amount of
consumed and the number of lines coded by a development team.

I want:
1) X-axis -> time
2) Primary Y-axis -> the number of lines coded
3) Secondary Y-axis (right hand side of the chart) -> litres of coffee

Because the units of the Y-axes differ they cannot be plotted on the same
thus the need for the primary and secondary axis.

Has anyone ever done something similar with ReportLab?

Gert Steyn

ISE Technologies (Pty) Ltd
Innovation Centre, Technopark,
Stellenbosch, 7650, South Africa
Tel: +27 (0) 21 880 2456
Fax: +27 (0) 21 880 2457
Web: www.ise.co.za