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.
296
questions
0
votes
1
answer
34
views
Reducing gap between bars of bar chart in R
I wrote the following code for plotting bar charts :
library(ggplot2)
library(dplyr)
interaction_data <- read.csv("association.tsv")
interaction_data <- interaction_data %>%
...
0
votes
1
answer
17
views
How to show in bar only the current status of an item in powerbi
I am a beginner in powerbi, please help me with enough detail to solve this scenario:
Suppose that I have several records in a table like these:
Item
Status
Date
Semester
C1
Ready
12/06/2024
S1-2024
...
-1
votes
0
answers
22
views
How to enable order by pattern in plotly.express
I am new to plotly.express and need help ordering my stacked categories. My data has 4 columns (Scenario, Component, Region and Cost). I am trying to plot a stacked bar chart with scenarios on the x ...
1
vote
0
answers
16
views
How do I arrange a stacked bar chart in r ggplot2 based on one of the variables being stacked? [duplicate]
I am very new to coding and trying to learn the ways of ggplot2. I am stuck on trying to arrange my stacked bar chart by highest to lowest for one of the variables that is being stacked, so there is a ...
0
votes
2
answers
53
views
Nested grouping variables for stacked bar graph
I'm trying to improve the visualization of this figure by separating the x-axis into nested subcategories of samples. I'm not able to use ggplot fill for this since I've already used pivot_longer() to ...
0
votes
1
answer
51
views
How to plot 2 categorical variables in a dodged barplot with their own subcategories stacked, with a line of a numerical variable on top?
I am trying to make a plot in R to show the frequency of two variables in different periods. My issue is that both variables have different subcategories. Also, I would like to add a third numerical ...
0
votes
0
answers
17
views
Difficulty plotting a vertical bar chart using Deneb in PowerBI
I am trying to take results from a csv dump file and present them in PowerBI as a more accessible way of analyzing the data. I haven't used PowerBI before but quickly found the default visualization ...
0
votes
0
answers
29
views
How do I make a stacked bar chart created from a Pivot table arranged from descending order (largest - smallest) in Excel?
I am creating a dashboard and have added a stacked bar chart that totals up to 100 % of the inputs in the production cycle. The stacked bar chart was created using a data in a Pivot table. The input ...
0
votes
0
answers
18
views
MPAndroidChart change position of stacked column value labels in Stacked Bar Chart
I'm getting this result with the stacked barchart in MPAndroidChart:
However I'd like the individual values for each inner column to be located at the center of their respective column, like this:
I'...
0
votes
2
answers
45
views
Stata stacked bar chart with combination of two variables
I have a dataset that looks similar to the following
value
component
grade
16
component 1
6
12
component 2
6
15
component 3
6
25
component 1
7
68
component 2
7
54
component 3
7
25
component 1
...
0
votes
1
answer
40
views
How to reverse legend order without affecting bar order in Plotly R? [duplicate]
I am creating a stacked bar chart using Plotly in R, and the order of the items in the legend is the reverse of the order that I want.
library(dplyr)
library(plotly)
library(forcats)
set.seed(1)
df &...
1
vote
0
answers
50
views
VBA Chart creation
I am trying to set up a script to create vertical stacked bar charts from compiled data but I can't get it to work, graphs/charts are the bane of my excel life..
The data is in a range 4 columns wide ...
-1
votes
1
answer
38
views
R code - Make a plot for survey responses
I am trying to make some barplots with my data but I keep hitting some walls. If someone on here could help that'd be great
I wanted to create barplots with side by side comparison of pre vs post ...
0
votes
1
answer
35
views
How to make a proportional stacked bar chart in with one bar for totals from a pivot longer dataframe
I would like to make a stacked bart chart showing percentages of the variables SARREN, SCED and SPROP across 4 case studies and have also a column for the totals across the 4 cases.
I modified the ...
0
votes
0
answers
45
views
Filter data and stacked bar plot (R)
I would like to filter data for value then make a stacked bar plot. The data from two variables column (Species name, AMR Class).
I tried using the code below but did not work out. Please help...
...