Questions tagged [stackedbarseries]

127 questions
21
votes
4 answers

More efficient matplotlib stacked bar chart - how to calculate bottom values

I need some help making a set of stacked bar charts in python with matlibplot. My basic code is below but my problems is how to generate the value for bottom for any element beyond the 2nd one efficiently. I can get the example graph to stack…
2705114-john
  • 762
  • 1
  • 6
  • 10
20
votes
1 answer

WHERE clause in SSRS expression

What's the syntax for inserting a WHERE clause in an SSRS expression? I am using BIDS 2008. =Sum(Fields!QuantityToShip.Value) WHERE FIELDS!Program.Value = "FC" The code listed above represents the logic I want to use, but obviously inserting the…
sion_corn
  • 3,043
  • 8
  • 39
  • 65
14
votes
2 answers

Ordering stacks by size in a ggplot2 stacked bar graph

So i have a load of data which I have sampled as an example below: Sequence Abundance Length CAGTG 3 25 CGCTG 82 23 GGGAC 4 25 CTATC 16 23 CTTGA 14 25 CAAGG 9 24 GTAAT 5 24 ACGAA 32 …
MattLBeck
  • 5,701
  • 7
  • 40
  • 56
10
votes
3 answers

How to use Jqplot to show two groups of differently colored bars in the same stacked bar chart

I want to make a bar chart with two sets of stacked bars which are grouped together to compare the two groups of stacked bars. This should be displayed in the following manner: I have gone through this link But it didn't help me plot something like…
Anish Nair
  • 3,238
  • 29
  • 41
7
votes
1 answer

ggplot2 histogram legend too large

I'm pretty happy with the results I'm getting with R. Most of my stacked histogram plots are looking fine, e.g. and However, I have a few that have so many categories in the legend that the legend is crowing out the plot, e.g. How can I fix…
slashdottir
  • 7,835
  • 7
  • 55
  • 71
6
votes
2 answers

Stacked Bar Graph Matlab

Say I have data as follows: level,age 8,10 8,11 8,11 9,10 9,11 9,11 9,11 I'm looking to form a stacked bar graph in Matlab where "level" is on the x-axis and number of occurances of that level (the frequency) is…
C. Reed
  • 2,382
  • 7
  • 30
  • 35
6
votes
2 answers

d3.js stacked bar with toggleable series

this time I am trying to create a stacked bar with toggleable series- based on Mike Bostock's example (thanks once more Mike!) I have already succeeded into making it responsive and zoomable, and the toggleable series through a legend is the last…
scooterlord
  • 15,124
  • 11
  • 49
  • 68
6
votes
1 answer

geom_text position middle on a bar plot

Need help with the aligning of the labels on the barplot. Here is the reproducible code: library(ggmap) library(ggplot2) library(gganimate) library(readxl) library(animation) mydf1<-structure(list(year = c(1994, 1995, 1997, 1997, 1998, 1998, 2000,…
twistfire
  • 425
  • 1
  • 5
  • 15
5
votes
1 answer

how to do a stacked barchart from a dataset using teechart in delphi

I can create a stacked barchart in Delphi using TeeChart. This is using values and series added in a loop. I would prefer to create this chart by just using a query as the datasource and not have to add each bar as a separate series inside a loop.…
4
votes
2 answers

Connect stack bar charts with multiple groups with lines or segments using ggplot 2

I am conducting a study of a number of patients with a disease, and using an ordinal scale assessment of functional status at 3 different time points. I want to connect multiple groups in stacked bar charts across these time points. I looked at…
XFrost
  • 109
  • 4
4
votes
1 answer

Error bars incorrectly positioned in a stacked bar graph (r)

I was trying to make a stacked bar graph with error bars based on this, previously answered question Making stacked bar plot with specified error bar values in R However, my error bars are incorrectly positioned. I have tried changing the order of…
Miranda
  • 43
  • 5
4
votes
2 answers

Android - MPAndroidChart - Overlay 3 bars

This question has been made here, but still has got no answer... Using StackedBarActivity example from MPAndroidChart library to draw a 3 merge bars, and setting the values as [1,2,3]... the chart is showed with a total of all numbers, 1+2+3=6.. but…
slyzer
  • 215
  • 1
  • 19
4
votes
0 answers

R Dygraphs BarChart with negative values plotting from zero origin

I learned how to create a custom plotter for Dygraphs from here: Create a barplot in R using dygraphs package thanks to: https://stackoverflow.com/users/1466144/kero This is what I'm able to…
Jose
  • 41
  • 1
4
votes
1 answer

OxyPlot : ColumnSeries/BarSeries display value of each column

In my WPF app, I use OxyPlot. I bind my data to the PlotModel and all is working well. I want to display the value of each column on the chart. Is it possible? For reference, this example of BarSeries on site, I wish to show actual value of Apples…
Tvd
  • 4,463
  • 18
  • 79
  • 125
3
votes
1 answer

How to create stacked bar chart with a time series and aggregated values

I am having difficulty creating a stacked bar chart time series from my Pandas dataframe (image below). I would like to have the 'Date' on the x axis, the 'Hours' on the y axis, and each bar to show the time spent with each group in 'Category'. Do…
jecklymeister
  • 65
  • 2
  • 7
1
2 3
8 9