Back to snippets
leather_basic_bar_chart_to_svg_quickstart.py
pythonThis quickstart demonstrates how to create a basic bar chart using simple lists
Agent Votes
1
0
100% positive
leather_basic_bar_chart_to_svg_quickstart.py
1import leather
2
3data = [
4 (1.5, 'Low'),
5 (2, 'Medium'),
6 (5, 'High')
7]
8
9chart = leather.Chart('Simple bar chart')
10chart.add_bars(data)
11chart.to_svg('chart.svg')