[reportlab-users] Changing the font colour of labelsin HorizontalBarChart

Stevens, Ian IStevens at globeandmail.com
Tue Nov 27 11:38:18 EST 2007


Thanks, that works for me.

Ian.


> -----Original Message-----

> From: reportlab-users-bounces at reportlab.com

> [mailto:reportlab-users-bounces at reportlab.com] On Behalf Of

> Robin Becker

> Sent: Tuesday, November 27, 2007 11:30 AM

> To: Support list for users of Reportlab software

> Subject: Re: [reportlab-users] Changing the font colour of

> labelsin HorizontalBarChart

>

> Stevens, Ian wrote:

> > How do I change the colour of the text in the categoryAxis,

> valueAxis

> > and bar labels? The fontColor attribute doesn't seem to work:

> >

> > c = HorizontalBarChart()

> > [...]

> > c.categoryAxis.labels.fontSize = c.valueAxis.labels.fontSize =

> > c.barLabels.fontSize = 8 # works

> > c.categoryAxis.labels.fontColor = c.valueAxis.labels.fontColor =

> > c.barLabels.fontColor = gray # gives "Illegal attribute

> 'fontColor'

> > in class Label"

> >

> > thanks,

> > Ian.

> ......

> text outlines are 'filled' so we have to use fillColor.

> --

> Robin Becker

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users

>



More information about the reportlab-users mailing list