[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,
Marc

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

Hi

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

I.e. Say I want a chart that shows the relationship between the amount of
coffee
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
consumed

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

Has anyone ever done something similar with ReportLab?

Regards
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
____________________________________________