[reportlab-users] Line chart x-axis

Andy Robinson andy at reportlab.com
Thu Jun 8 12:25:37 EDT 2006

Yes, there is a "graphics guide" which should be under ReportLab on your start menu. 
- andy
-----Original Message-----
From: "Steve Bowsher" <sbowsher at jupiter-group.co.uk>
Date: Thu, 8 Jun 2006 17:03:50 
To:"Support list for users of Reportlab software" <reportlab-users at reportlab.com>
Subject: RE: [reportlab-users] Line chart x-axis

Thanks Andy.

Does report lab have a reference of all the attributes?

Best regards,
Steve Bowsher
Web Coordinator
Jupiter Unit Trust Managers Ltd
Winner: MultiManager Group of the Year 2003, 2004 & 2005 - Real Adviser
Winner: Global Group of the Year 2004 and 2005 - Investment Week Awards

-----Original Message-----
From: reportlab-users-bounces at reportlab.com
[mailto:reportlab-users-bounces at reportlab.com] On Behalf Of Andy
Sent: 07 June 2006 17:41
To: Support list for users of Reportlab software
Subject: Re: [reportlab-users] Line chart x-axis

Steve Bowsher wrote:
> Hi,
> I'm trying to create a line chart where the x (horizontal) axis
> intersects the y-axis at it's lowest value. The chart might contain 
> negative values.
> Is there attribute change that will enable this to happen?

Hi Steve,

Assuming it's a horizontalLineChart, use:
    chart.categoryAxis.joinAxisMode = 'bottom'

Some charts have two value axes so the 'categoryAxis' will be called 
something else, but each axis has a joinAxisMode.

If you want to do anything more fancy here are all the ways you can join

axes.  Allowed values are: 'bottom'; 'top'; 'value' or 'points'

If you set it to 'value', then 'joinAxisPos' attribute will specify a 
y-value in real world units (e.g. pounds, growth rates or whatever). If
you set it to 'points' then 'joinAxisPos' can be used to specify that 
  it joins e.g. [50] points above the bottom of the chart bounding box.

Hope this helps,

Andy Robinson

reportlab-users mailing list
reportlab-users at reportlab.com

"This communication contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any distribution, copying or use of this communication or the information in it is strictly prohibited. If you have received this communication in error please notify us by e-mail (postmaster at jupiter-group.co.uk) or by telephone +44 (0) 20 7314 4884 and then delete the e-mail from your system together with any copies of it . All communication sent to and from the companies listed below are subject to monitoring of content. By using this method of communication you give consent to the monitoring of such communications. Any views or opinions are solely those of the author and do not necessarily represent those of the companies listed below unless specifically stated."

Jupiter International Group PLC ("JIG"), Jupiter Asset Management Limited
("JAM") and Jupiter Unit Trust Managers Limited  ("JUTM") are all registered in England (nos.792030, 2036243 and 2009040). The registered office of JIG, JAM and JUTM is 1  Grosvenor Place, London, SW1X 7JJ. Both JAM and JUTM are authorised and regulated by the Financial Services Authority . JIG, JAM and JUTM are members of the Commerzbank Group.

reportlab-users mailing list
reportlab-users at reportlab.com

More information about the reportlab-users mailing list