This article is the continuation of the previous two articles on plotting charts. In the following article, we will look at some other charts which can be plotted in excel using openpyxl.chart in python for data science.
Code 1: Plotting a Doughnut Chart
These are concentric rings which plot several series of data. In order to plot a Doughnut chart on excel sheet, we need to use DoughnutChart class from the submodule openpyxl.chart.
OUTPUT:
Code 2: Plotting a Radar Chart
Radar charts are used to compare aggregate values of multiple data series. It is a projection of an area chart on circular x-axis. To plot a Radar chart on excel sheet, we need to use RadarChart class from the submodule openpyxl.chart.
OUTPUT:
Code 3: Plotting a Surface Chart
The surface chart comes in handy when we want to find optimum combination between two sets of data. Similar to a topographic map, colors and patterns will indicate the areas which are in the same range of values. To plot a Surface chart on excel sheet, we need to use SurfaceChart class from the submodule openpyxl.chart.Similar to a topographic map, colors and patterns will indicate the areas which are in the same range of values. To plot a Surface chart on excel sheet, we need to use SurfaceChart class from the submodule openpyxl.chart.
OUTPUT:
Code 4: Plotting of Surface 3D chart
To plot a Surface 3D chart on excel sheet, we need to use SurfaceChart3D class from the submodule openpyxl.chart.
OUTPUT:
To learn more about charts in python for data science, you can check this and this as well.