[reportlab-users] Changing the font colour of labels in HorizontalBarChart
Robin Becker
robin at reportlab.com
Tue Nov 27 11:30:22 EST 2007
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
More information about the reportlab-users
mailing list