Admittedly I think I may be stumped because i can't figure out how to describe my problem so I can effectively google it...
in short the report lab horizontal line chart I'm trying to create works when I assign data to my list variable when I build it like this:
data=[(55,56,57,58)]
or (after carefully reading the report lab documentation for a single series chart data=[(55,56,57,58),]
However, the lists that i'm building in my python code come out like the this data=[55, 56, 57, 58]
So what is the difference between [#, #, #] and [(#, #, #)]
[#,#,#]
is a list (#,#,#)
is a tuple [(#,#,#)]
is a (one element) list of a tuple
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.