Questions tagged [stacked]
377 questions
1
vote
1 answer
Changing the colour of both variables and categories in ggplot2
I would like to create a stacked bar plot in which not only the variable has its only color but also the category
a = c("A","A","B","B","C","C","D","D")
b =…

fridaymeetssunday
- 1,118
- 1
- 21
- 31
1
vote
2 answers
Setting the "Enable3D" property of "ChartArea" in Code behind for StackedColumn charts
I created a StackedColumn chart using the built in .NET 4.0 controls.
The charts are coming out properly.
I want to make it look 3-D though.
I am able to do that by using XAML. But I am unable to do the same using code behind.
Please see my code…

Nandu
- 375
- 2
- 5
- 8
1
vote
7 answers
get the figure using nested for loops in Java
Any ideas how to write Java program in a class named Window that produces the preceding figure as output. I have to use nested for loops to print the repeated parts of the figure.
I've tried lots of times, no success :(
Write a Java program in a…

alya
- 27
- 1
- 6
1
vote
1 answer
Automatically dismiss underling modal view
I'm sharing this as it took me A while to figure out. This is if you need to get rid of a double stack of modal views IF it is pressent.
if(self.parentViewController.parentViewController)
[self.parentViewController.parentViewController…

Andres Canella
- 3,706
- 1
- 35
- 47
1
vote
1 answer
stacked create service authentication is failing for me
when I try to create service using stacked_cli: ^1.3.0 , i am getting the following error:
Unhandled exception:
Invalid argument(s): Could not find an option named "template".
#0 ArgResults.[] (package:args/src/arg_results.dart:65:7)
#1 …

MOE
- 41
- 3
1
vote
1 answer
Manually reorder stacked bar chart
I am trying to reorder my stacked bar plot so that it is from the bottom to top: Epidural, Subdural, Subarachnoid, Intracerebral, and Unspecified. I have included my plot, dataframe, and code below
This is my code:
ggplot(cat, aes(x =…

ltong
- 501
- 1
- 8
1
vote
1 answer
pandas, matplotlib, drawing a stacked bar chart
I have a dataframe like this:
Names loc.items
Name1 343 1756
Name2 5 15
Name3 688 1667
Name4 88 444
Name5 1 1
....
Name99 22 111
It is easy to get a stacked bar where the names are on x axis and the stacked bar is on every…

Jodahsh
- 15
- 4
1
vote
1 answer
I needed grouped Stacked Bar chart in compate current and previous years data with category wise count display in chart
I would like the chart as shown in below image in Jquery, I have tried lots of code but unable to achive it, I can post the code which i have tried but its worth less.
In the chart we are trying to compare the sold business by category wise for last…

Meet Kadivar
- 41
- 4
1
vote
1 answer
Stacked bar plot in a for loop
i'm trying to make a stacked plot bar.
Problem is I have to do it in for loop, and I don't know how to manage the "bottom" parameter in the loop.
fig, ax = plt.subplots(1, figsize=(20,5), dpi=200, sharex=True)
fig.suptitle('titre',fontsize=14)
n =…

BenjiBoy
- 141
- 7
1
vote
1 answer
Echarts4r: Add extra variable to the tooltip for a stacked bar chart when using focus="series"
Please, I need help! I am stuck with the tooltip. I want to add an extra variable beside the value showed in the tooltip but I don't know how to do it. The thing is that I want to use "emphasis = list(focus = "series")" in order to focus on the…

ddl
- 31
- 2
1
vote
1 answer
How to draw rowstacked histogram in gnuplot with value labels in each bar
I want to draw a rowstacked histogram. The following is what I have so far .
I have used the code below
reset
set bmargin 10
set lmargin 20
set rmargin 16
set tmargin 7
show margin
set title "" font "Verdana,27"
show title
set grid
set xlabel…

Faysal
- 35
- 6
1
vote
1 answer
Barplot - stacked ggplot percentage barplot starting value NOT 0%
I have a plot like this:
library(ggplot2)
library(reshape2)
library(ggh4x)
data <- data.frame(col1=c("Sample1","Sample2","Sample3","Sample4","Sample5","Sample6"),
col2=c(0.5,0.1,0.4,0.05,0.05,0.9),
…

Thend
- 95
- 7
1
vote
0 answers
Seaborn stacked displot with three variables
I am wondering if there is a way to visualise three variables using stacked displot. Two is relatively straightforward using x and hue arguments. For example:
tt=pd.read_csv("titanic-data.csv")
tt['Pclass'] =…

shiftyscales
- 441
- 4
- 20
1
vote
0 answers
Is there a way to wait for one stream's data before listening to another stream that is dependent on the first
I rely on more than one stream for the data in my app. In this specific situation I listen to the first stream which is dependent on User UID (Firebase Auth) which I already have. But the 2nd stream needs something returned from the 1st…

Deen Gangen
- 41
- 5
1
vote
1 answer
How to plot separate bar in bar graph for repeated values using Matplotlib?
Given a dataset:
x = [3, 2, 4, 6, 7]
y = ['a','a','b','b','c']
Here variables a and b are repeated twice. My requirement is to plot the bar graph for each variable and for variables a and b, we need a separate bar for each a and b.
I was trying to…

rijulml
- 21
- 3