Questions tagged [stacked-bar-chart]

A stacked bar chart is a graphical representation of data where, for each categorical group, there are two or more bars colored to represent a particular grouping. The value is represented by the length of the bar segment.

247 questions
0
votes
0 answers

Add value labels to stacked bar chart

Last update: I figured it out by looking at a million different stackoverflow posts. To turn off the scientific notation for tick labels, I…
Niki
  • 13
  • 4
0
votes
1 answer

How to combine two data frames into one graph where I will have two stacked bars side by side for each class?

I registered here specifically for this purpose. Basically I have two data frames that have the exact same information but from two different years. Here the head() of one of the data frames: species dbh_cm height_m f plot dbh_m …
Star Cha
  • 3
  • 1
0
votes
1 answer

How can I plot a bar with totals without the header in Pandas dataframe?

I want to plot a bar with total labels based on my df. But, the totals appear off by one row. The plot includes the header row, so the totals are misplaced. Here is the header and first 3 rows of my df and my code: Ethnicity Bachelor Master…
0
votes
0 answers

Chart.js. Offset between stacked bars

I need to add offset between stacked bars like it is on the example. I've read documentations and rummaged in the source files, but found nothing. Maybe someone has encountered such a feature or with such plugin. My configurations is just copy of…
0
votes
1 answer

python stacked barplot labeling problem when there is a missing section/patch

I have two dataframes,dfp and df50.I will use dfp to plot stacked barplot of layer thickness (t_L) for different nodes. Following is dfp: dfp Out[366]: node t_L1 t_L2 t_L3 t_L4 t_L5 75 1000 10.000000 0.997805 …
ZVY545
  • 384
  • 1
  • 13
0
votes
1 answer

python stacked-barplot labels for zero thickness patches

I have two dataframes,dfp and df50.I will use dfp to plot stacked barplot of layer thickness (t_L) for different nodes. Following is dfp: dfp Out[366]: node t_L1 t_L2 t_L3 t_L4 t_L5 75 1000 10.000000 0.997805 …
ZVY545
  • 384
  • 1
  • 13
0
votes
1 answer

How to change colours in multiple stacked bar charts in R?

I am trying to construct the stacked bar chart plots. Below you may find the sample data set and a code. This is the data…
0
votes
1 answer

Oracle APEX Stacked bar chart with percentage values

I'm looking for an option to get a stacked bar chart in oracle apex with percentage values. My stacked bar chart works with integral numbers (e.g.use 80 for 80%) but I can't find an option to add the %-symbol to the values afterwards. So I divided…
Sabi
  • 141
  • 1
  • 5
0
votes
1 answer

How display percent values on a stacked bar plot using ggplot in R

I've produced this graph (on the attached photo) using ggplot2. My code goes like this: ggplot(data, aes(fill=condition, y=value, x=period)) + geom_bar(position="fill", stat="identity")+ xlab("Période") + ylab("Pourcentage") + ggtitle("Répartition…
0
votes
1 answer

How to plot a horizontal Stacked bar plot using Plotly-Python?

I'm trying to plot the below summary metric plot using plotly. data Model F1_Score Precision Recall Accuracy ROC_AUC CV_Score 0 LogisticRegression 0.815068 0.777778 0.856115 0.739130 0.678058 0.752876 1 …
0
votes
1 answer

Stacked bar plot based on values from multiple columns within the same DF

Say we have a DF like this one below: channel store product orders offline Swindon webcam 97 offline Kettering webcam 28 offline Swindon ebook 55 offline Kettering ebook 77 offline …
teogj
  • 289
  • 1
  • 11
0
votes
1 answer

Clustered Stacked bar plot over time

I have a data frame as below: time type category count 2021/01/01 regular A 2 2021/01/02 new B 3 2021/01/02 regular A 5 2021/01/03 new A 1 ... and so on What I…
A.Hamza
  • 219
  • 1
  • 4
  • 13
0
votes
1 answer

Plot stacked bar chart

I have a pandas dataframe representing a table with 2 columns and 4 rows Name | Value n1 | 10.3 n2 | 5 n3 | 15 n4 | 8 I need to draw stacked bar (matplotlib) of values and the names should be shown in legend I tried this (with no…
YAKOVM
  • 9,805
  • 31
  • 116
  • 217
-1
votes
0 answers

Create Grouped Stacked Bar Chart between Two Main Datasets and their Subdatasets

I have two Datasets with their sub datasets (data per collection date); PROD's :PROD_0601, PROD_0615, PROD_0701 and then GAMMA's: GAMMA_GDv1, GAMMA_GDv2, GDv3 DS_GAMMA = { GAMMA_GDv1: { 'cat1': 5, 'cat2': 3, ... }, …
-1
votes
1 answer

Stacked barchart in ggplot2 with months and counts

I thought this would be simple, but I also haven't used ggplot2 a whole lot, so here I am. This is a portion of my dataset: Month Cause 1 Oct Unknown 2 Apr Unknown 3 Nov Roadkill 4 Oct Disease 5 Sep Predation 6 Jul …
1 2 3
16
17