Questions tagged [stacked-chart]

For questions about stacked charts, i.e. charts where multiple data series are superimposed.

Stacked are charts in which you collect multiple data series and display their cumulative values. These can be stacked histograms, stacked areas, or a number of other arrangements.

Stacked areas Stacked areas adding up to 100% 3d example Stacked area chart

Typical questions involve how to get this sort of layout from various plotting engines and how to affect details like legends, orientation, color palette, grouping, etc.

674 questions
3
votes
1 answer

Grouped stacked barplot ggplot2 without facet_grid

Hi I wanted to make a stacked barplot using ggplot2 with below data: DF <- read.table(text="Rank P_Rank value_Rank P2_Rank AC 1 250 1 AN 1 100…
sdhaoui
  • 369
  • 1
  • 10
3
votes
1 answer

Unneeded white space before the 1st bar in D3 Stack chart

I am trying to populate a data set into D3's Bar chart data. I am using this example from the d3: https://bl.ocks.org/mbostock/1134768 var causes = ["wounds", "other", "disease"]; var parseDate = d3.time.format("%m/%Y").parse; var margin = {top:…
Vidit
  • 151
  • 10
3
votes
1 answer

Stacked Column Chart in C#

I am trying to set up my program so that the user can display a stacked column chart that displays the number of reject categories that appear in each department (for example, 5 appear in department 1, 3 in department 2, etc). I've had a look around…
iiAaronXiX
  • 93
  • 2
  • 3
  • 13
3
votes
1 answer

Creating a "stacked" Gantt chart in Tableau?

I'm working with a dataset that describes contract durations with a list of companies. Obviously all contracts have a start date and a (minimum) duration. Some contracts however, are subject to possible prolongation. Here's a data example: Company…
Morten Nielsen
  • 325
  • 2
  • 4
  • 19
3
votes
1 answer

Y values on each stacked bar using matplotlib

Having a question on showing actual values on the chart. I do have a printed chart and need to show values of each stacked bar. How can I show these values? I have tried ax.text function but it does not give desired result(see in picture). As the…
orangutangas
  • 391
  • 2
  • 7
  • 20
3
votes
1 answer

stacked chart with ZingChart

I'm making stacked bar chart with ZingChart library. Here is a sample http://jsfiddle.net/api/post/library/pure/ but suppose i need a limit , e.g the color should only change if it exceeds 15k. Is that possible? var myConfig = { …
quorious
  • 84
  • 8
3
votes
1 answer

Size based pie chart code doesn't work

I wanted to reproduce this attached graph to multiple pie-charts whose radii are defined by the total weed weight. This was the code I used: weedweights<-data%>% select(-ends_with("No"))%>% gather(key=species, value=speciesmass,…
Little Bee
  • 1,175
  • 2
  • 13
  • 22
3
votes
2 answers

Subplot Stacked Bar Graphs

I've got three stacked bar graphs which I have gotten to display correctly but I want to display them side by side (as opposed to three different graphs (one under the other)). Current code that display three graphs individually is (where axX_Group…
CoachB
  • 43
  • 4
3
votes
1 answer

Proper x-axis for Highcharts stack group column

I'm trying to develop a chart that visualizes data using 1 measurement and 3 dimensions. I put one dimension on the x-axis, one as stack and one as list of series. HighCharts has the stacked-grouped-column chart that I use as basis. See my…
Rob Audenaerde
  • 19,195
  • 10
  • 76
  • 121
3
votes
1 answer

ggplot reorder stacked bar plot based on values in data frame

I am making stacked bar plots with ggplot2 in R with specific bar ordering about the y-axis. # create reproducible data library(ggplot2) d <- read.csv(text='Day,Location,Length,Amount 1,4,3,1.1 1,3,1,2 1,2,3,4 …
James
  • 699
  • 8
  • 13
3
votes
0 answers

Fsharp.Chart: Data series labels in StackedColumn chart

I want to draw a conventional stacked chart, with a legend showing what the colours mean, but what I get is a legend box showing lots of names of the form "Stacked_GenericChart_Series_1_4" The standard way of creating the chart (by giving the…
Jules May
  • 753
  • 2
  • 10
  • 18
3
votes
2 answers

R: How to aggregate data into percentages without missing data for stacked-bar plot in ggplot2?

I would like to summarize my "karyotype" molecular data by location and substrate (see sample data below) as percentages in order to create a stack-bar plot in ggplot2. I have figured out how to use 'dcast' to get a total for each karyotype, but…
Keith W. Larson
  • 1,543
  • 2
  • 19
  • 34
3
votes
1 answer

How to show only the whole numbers in Y number aexis in stackedbarchart/barchart

Y axis tick label should only show non decimal values / whole numbers as as series . if i set set TickUnit to 1 it should be 1,2,3,4,5,.. if i set Unit Ticks to 2 ..2,4,6,8,.. if i set to 5 5,10,15,20,25. i set the Unit Ticks to 1 still it…
jawath
  • 439
  • 7
  • 22
2
votes
0 answers

How to adjust error bars position in matplotlib stacked bar plot?

Im trying to plot a stacked bar plot in matplotlib including error bars for each slice in the stack. The problem is, that at the moment, the error bars are positioned in y-orientation at the mean value of the slice, causing them to clump at the…
2
votes
1 answer

Facet Wrap by Specific Variables + ggplot2 + r

This is a tricky one, or at least it seems so to me... I have a dataset that I need to facet wrap by specific variables. I want to group 2 variables, in this example Data1 + Data2, on one side of the facet wrap with a stacked bar chart of pre and…
John Conor
  • 722
  • 6
  • 20