Hi, I'm currently using Plot.ly to create a line graph comparing ten presidential candidates' ten most recent likes on their Facebook posts. I'm having some trouble figuring out the best way to plot this. It would be easy to do if all the candidates posted at the same time, but obviously they're going to post minutes, hours, or even days apart. Here are two graphs I've made:
This one looks good, but it's inaccurate. For example, some of those posts are from 12/13 but are listed as 12/15.
This one looks bad, but is accurate. The problem with it is that while it lists each individual candidate's likes as expected, it lists each one individually (thus why they look separated).
Here's my code-- I know it could be more efficient and cleaner, but I hacked it together real quickly. Any ideas how I can condense all of the candidates on one chart?
Subreddit
Post Details
- Posted
- 9 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnpython...