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

Gert Steyn reportlab-users@reportlab.com
Mon, 12 Jul 2004 12:21:12 +0200


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?

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