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
2 answers

use of pivot_wider to plot the evolution of variables in R

I would like to plot the evolution of the number of workers per category ("A", "D", "F", "I"), from 2017 to 2021, with a stacked bar chart (with the labels in the middle of each bar, for each category), one bar per year. Yet my dataset isn't in the…
0
votes
2 answers

Use slider to update stack bar value in bokeh

I have my data set up similar to the fruits example below. I have been trying to add a slider that controls for example the year '2015' and when I change the slider value, the stacked chart updates according to this new value. Example: Current…
AxoBlue
  • 11
  • 3
0
votes
1 answer

mistake when using dplyr, trying to plot a variable in proportion of the total

I have a dataset which has the following structure < dput(head(df)) > : structure(list(type_de_sejour = c("Amb", "Hosp", "Hosp", "Amb", "Hosp", "Sea"), specialite = c("ANES", "ANES", "Autres", "CARD", "CARD", "CARD" ), CA_annee_N = c(2712L,…
user19628116
0
votes
1 answer

Stacked bar chart for each column

citetest<-data.frame(db=c("db1","db2","db3","db4","db5"), risall=c(248,134,360,122,46), riscross=c(149,88,255,100,40), risuniq=c(99,46,105,22,6)) head(citetest) #> db risall…
Halfway
  • 13
  • 2
0
votes
1 answer

How can I create a Stacked Bar plot in Python where the y axis is NOT based on counts

I have the following Pandas DataFrame (abbreviated here): df = pd.DataFrame([ ("Distal Lung AT2", 0.4269588779192778, 20), ("Lung Ciliated epithelial cells", 0.28642167657082035, 20), ("Distal Lung AT2",0.4488207834077291,15), ("Lung Ciliated…
An Ignorant Wanderer
  • 1,322
  • 1
  • 10
  • 23
0
votes
1 answer

show text widget with no data for a bar which has zero value synfusion stacked bar graph flutter

Need to show no data available text in place of bar which has zero value , y axis labels are string and x axis are integers please refer below for the 1st image is acutal result and 2nd image is expected result . 1st image in which empty place…
gopinath
  • 89
  • 1
  • 9
0
votes
1 answer

Having trouble creating a stacked bar chart

I'm a total newbie to R. I'm trying to create a stacked bar chart based on this code: activity <- c("mean_fairly_active", "mean_fairly_active", "mean_fairly_active", "mean_fairly_active", "mean_fairly_active", "mean_fairly_active", …
AndreaGH
  • 5
  • 4
0
votes
1 answer

is Crystal Report generate stacked bar chart of this style? Sample is attached in image

I Need a report in crystal Report with the attached image style. Can Crystal reports support it?
AIM
  • 21
  • 1
  • 6
0
votes
1 answer

Grouping multiple stacked bars on same chart

I'm trying to show 5 stacked bars on the same chart, however for each bar the stacks have different labels. Specifically, I have 5 land areas, each with 5-9 districts. So I'd like 1 bar for each land area and the bar to be segmented by each district…
Dave R
  • 202
  • 1
  • 8
0
votes
2 answers

How to implement stacked bar graph with a line chart in R

I have a dataset containing y variable as Year and x variables as (A, B, C(%)). I have attached the dataset here. dput(result) structure(list(Year = 2008:2021, A = c(4L, 22L, 31L, 48L, 54L, 61L, 49L, 56L, 59L, 85L, 72L, 58L, 92L, 89L), B = c(1L,…
Setu Kumar Basak
  • 11,460
  • 9
  • 53
  • 85
0
votes
1 answer

Stacked barplot with continuous labels and breaks in R

Is there a way to make a stacked barplot with continuous breaks and labels? Transforming my dataframe from a "wider version" to a "longer version" allowed me to make a stacked barplot, but now my labels are misaligned (CYR 2009 should be directly…
Nate
  • 411
  • 2
  • 10
0
votes
1 answer

Displaying a stacked bar graph with nested lists

I am trying to display a stacked bar graph.I have 3 lists as shown below- totalpointperxaxis [6, 9, 13, 5, 14, 382, 26, 2, 45, 2] clusternamesList [['Cluster1', 'Cluster2'], ['Cluster1', 'Cluster3'], ['Cluster2', 'Cluster4'], ['Cluster1',…
0
votes
1 answer

How to add custom annotations to a stacked bar plot

I am trying to annotate a stacked histogram in Seaborn with the hue for each segment in the histogram for readability reasons. I've attached sample data below and what I'm currently doing: Sample data: https://easyupload.io/as5uxs Current code to…
0
votes
0 answers

Secondary axis excel chart (month/total)

I have a question. I would like to display the costs incurred in a stacked Excel column chart. In addition, the columns should represent the monthly and annual cost types. However, the problem is that the annual values ​​need a different scaling,…
Rob98
  • 37
  • 1
  • 5
0
votes
1 answer

Stacked barchart with 3 variables

I have a survey data with respondents answering multiple questions. In one variable, respondents express their opinion about a party "1" = favorable and "0" = unfavorable. In the second variable, they rate an issue as "1" = major threat, or "2" =…