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
-2
votes
1 answer

Filling colors of a stacked bar chart according to count instead of category (R/Excel)

I want to create a stacked bar chart but I want the colors to be decided based on count. For instance, if I have 5 bars and each bar has 3 categories, the default way to color the bar chart is by category. (for instance, category 1 is red, category…
-2
votes
1 answer

ChartJS Stacked Bar Chart: Showing value in opposite directions

I want to generate a stacked bar chart like this. How can I achieve this? Any solution will be highly appreciated.
Salahuddin Ahmed
  • 4,854
  • 4
  • 14
  • 35
-2
votes
1 answer

How to make Stacked and Grouped Barplot with ggplot2?

I want to create a barplot both stacked and grouped. How it can be done? I've been searching on the internet and I've not found any solution yet, that do not use faceting. I set an example below. library(ggplot2) library(reshape) a <-data.frame( …
-2
votes
1 answer

R stackedBar chart

If this is my dataset. Surgery Surv_Prob Group CV 0.5113 Diabetic Hip 0.6619 Diabetic Knee 0.6665 Diabetic QFox 0.7054 Diabetic CV 0.5113 …
King Frazier
  • 243
  • 3
  • 14
-2
votes
2 answers

How to generate web based report from my python charts

I wrote the following code to generate a couple of charts using the plotly library: #Read the excel file from local spreadsheet df = pd.read_excel(r'C:\Users\llopez\Documents\Temp\Python finished goods.xlsx', sheet_name='Sheet1') #Create a…
Luis Lopez
  • 23
  • 5
-2
votes
1 answer

Which jquery plugin can create a stacked column chart?

I want to create a chart like this: The number of cells of the columns is not equal. Display numbers in cells and have a border between the cells of the column. Can edit the background color for any cell of the column. Each column has many cells,…
Tran Audi
  • 587
  • 1
  • 6
  • 22
-2
votes
1 answer

How to arrange stacked column chart in ascending order in Excel?

I have the table in Excel: I have generated 100% stacked column chart for this data. It looks like this: But it's not arranged. I want the stacked chart to be arranged in ascending order. Parameter is accuracy rate (%). So I want green columns…
Erba Aitbayev
  • 4,167
  • 12
  • 46
  • 81
-2
votes
1 answer

DC.JS Stacked Bar Chart colors

I have created a stacked chart my data look like this: [{probability: 0.12 , impact: 27 }, {probability: 0.22 , impact: 27 }, {probability: 0.44 , impact: 27 }, {probability: 0.12 , impact: 28 }, {probability: 0.31 , impact: 28 }, {probability:…
-2
votes
2 answers

Build Bar Stacked chart with grouping and timeline

I have a table: > DT id start end place 1: id1 2014-01-01 2014-02-01 town1 2: id1 2014-02-01 2014-04-01 town2 3: id2 2014-01-01 2014-02-01 town2 4: id2 2014-03-01 2014-05-01 town4 5: id3 2014-01-01 2015-02-01 town3 I need to plot a…
Sergey N Lukin
  • 575
  • 2
  • 16
-2
votes
2 answers

In R stacked barplot with colors mapped according to variable

I am just starting in R, and I'm stuck at the barplots. I want to make a stacked barplot where the colors are chosen based on a variable. My data looks lik this: Thickness point 3 point 5 point 6 point 7 point 8 point 9 point 11 layer1 25 20 90…
IlhameO
  • 35
  • 7
-3
votes
1 answer

How to create two stacked bar charts next to each other using ggplot. I want to recreate the below chart:

I have the below 2 dataframes: lc2 <- structure(list(group = 1:3, sumpct = c(13, 32, 54)), class = "data.frame", row.names = c(NA, -3L)) note this is for the "likelihood to click" bar (see image), where "extremely/somewhat likely" is 13%, neutral…
Bruno Lizo
  • 27
  • 3
-3
votes
1 answer

How to create a stacked bar chart out of two lists: considering one is as cluster, and other one is flag

Let's say I have following code piece: x = [1,1,1,1,2,3,3,3] y = [1,1,0,0,1,1,1,0] import matplotlib.pyplot as plt from collections import Counter freqs = Counter(x) plt.bar(freqs.keys(), freqs.values(),…
BTurkeli
  • 91
  • 1
  • 2
  • 15
-3
votes
1 answer

I am getting single bar chart on stacked Barchart which I am adding values dynamically.I need to get all bar charts

I need to get all bars but I am getting single bar (last array).Even the logic is right.I don't know please help me.Thanks in advance.I search in google but I didn't got answer. Below is main part of full code Initialize String…
sainadh
  • 11
  • 8
-3
votes
1 answer

represent a stacked bar chart graphically with openGL using C++

i figured out how to make the bar pieces but my problem is with the positioning of each piece's bottom edge, i can't figure out how to make them perfectly stacked on each other, so most of them end up being on top of the other, making the bar look…
narlingz
  • 9
  • 4
1 2 3
44
45