Skip empty bars when drawing

Dimitri Vasilkov <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <CAEf3zvEbnBQo1S2tzkXQEY5nsW1A5E378V0FYFku5u0LhPM9dw@mail.gmail.com>
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
Screenshot from 2019-11-12 11-12-09.png (image/png, 18.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.