[reportlab-users] Skip empty bars when drawing

Dimitri Vasilkov dimvasilk at gmail.com
Tue Nov 12 14:19:12 EST 2019


Hello,

I am using reportlab to create a bar graph of downloads, where the category
is the download name and each bar is the number of downloads for a
particular format. If a particular format has not been downloaded, it has a
corresponding value of None. Since there are a lot of download formats that
have no downloads and some that have several, there are big gaps between
the bars as you can see in this image:

[image: Screenshot from 2019-11-12 11-12-09.png]

I have perused the reportlab graphics reference and there doesn't seem to
be an option in the graph to not leave space for empty bars. Is there a way
I can obtain this behavior?

Thank you,
Dimitri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20191112/0eb703c9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2019-11-12 11-12-09.png
Type: image/png
Size: 18908 bytes
Desc: not available
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20191112/0eb703c9/attachment.png>


More information about the reportlab-users mailing list