Something like this, but without legend and with labels on y.
Asked
Active
Viewed 1,021 times
1 Answers
6
Here is what I've used to make a horizontal bar with pygal:
bar_chart = pygal.HorizontalBar(show_legend=False)
bar_chart.title = "Title"
bar_chart.add("", [1, 4, 6, 7, 2, 3])
bar_chart.x_labels = ("the", "quick", "brown", "fox", "jumps", "over")

Alan H
- 3,021
- 4
- 25
- 24
-
How can I make each label with different color instead of one as shown? – Anil_M Aug 26 '16 at 17:48
-
have you tried http://www.pygal.org/en/stable/documentation/configuration/value.html?highlight=color ? – Remco Jan 25 '17 at 10:12