[reportlab-users] barLabels in a stacked HorizontalBarChart()

Robin Becker robin at reportlab.com
Mon Sep 9 05:40:47 EDT 2013


On 09/09/2013 10:23, Helga Peters wrote:
...........

>

> Since the second serie includes the value '0' the barLabels overwrite

> eachother in the chart. Is it possible to not show the '0' values or


Helga, you probably need to set the value axis forceZero option.

hbc.valueAxis.forceZero = 1


> better, is it possible to show the total of the two series as a barLabel ?

>


you can get the bars stacked on top of each other using the categoryAxis style
attribute ie

hbc.categoryAxis.style = 'stacked'





> Thanks in advance,

> Helga

......

--
Robin Becker


More information about the reportlab-users mailing list