Back to templates
Matplotlib Stacked bar chart
GeneralStacked bar chart, Show the proportion of each part to the whole, Suitable for multi-category comparison.
Publisher: OOPLOT
Published: 2026/4/1
ID: 37
Usage: 0·Views: 0·Favorites: 0
PYTHONmatplotlib
Parameters (4)
- • Width (Default: 8)
- • Height (Default: 6)
- • DPI (Default: 300)
- • Chart title (Default: Stacked Bar Chart)
Template Inheritance
Parent:None
Children:None
Data Format Requirements
Required Columns
- Category(First column, Index)CategoricalRequired
Example Data
You can directly copy and save as data.csv for upload.
category,A,B
6.5,-1.55
6.9,-0.8
9.1,1.12
4.4,-1.94
4.8,-1.46
7.3,-0.2
7.2,-1.66
7.1,-0.87
8.1,0.09
5.7,1
5.5,-1.98
10,-1.74
6.6,-1.81
9.6,1.19
3.4,-1.22Chart Preview
How to Use
1.Extract/Search/Create Template
Upload images to let AI extract templates in one click, search and select templates, or create templates.
2.View Sample Data
View sample data and manually or via AI modify the data structure to meet template requirements.
3.Upload Data & Run
Upload data, run the template, preview results, and adjust parameters/code to modify the template and chart.
4.Save & Export Chart
Export charts in PNG / JPG / SVG / PDF formats or save to OOPLOT.