Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
像这样的东西,但没有图例并且在 y 上有标签。
这是我用来用 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")
它产生了这样的图表: