Locked lesson.
About this lesson
There are many other basic charts you can use with openpyxl, such as bar charts, line charts, area charts, and scatter charts.
Exercise files
Download this lesson’s related exercise files.
30 - Intro To Charts and Graphs - Bar Charts, Line Charts, Area Charts, ScatterCharts.docx60.5 KB 30 - Intro To Charts and Graphs - Bar Charts, Line Charts, Area Charts, ScatterCharts SOLUTION.docx
56.7 KB
Quick reference
Intro To Charts and Graphs - Bar Charts, Line Charts, Area Charts, ScatterCharts
There are many other basic charts you can use with openpyxl, such as bar charts, line charts, area charts, and scatter charts.
When to use
Use this whenever you need a bar chart, line chart, area chart, or scatter chart.
Instructions
# Import the charts
from openpyxl.chart import Reference, Series, PieChart3D, BarChart3D, LineChart3D, AreaChart3D, ScatterChart
#Define our Chart instance
chart = PieChart3D() # or BarChart3D(), LineChart3D(), AreaChart3D(), ScatterChart()
The rest stays the same from the last video.
Hints & tips
- from openpyxl.chart import Reference, Series, PieChart3D, BarChart3D, LineChart, AreaChart3D, ScatterChart
- chart = PieChart3D() # or BarChart3D(), LineChart(), AreaChart3D(), ScatterChart()
Lesson notes are only available for subscribers.