Questions tagged [stacked]

377 questions
4
votes
1 answer

flot - legend entries and stacked bars have reverse order

I ran across another small stacked bars issue: When filling the plot, flot adds the legend entries top-down and stacks the bars bottom-up. This way the legend is ordered exactly reverse from the bars. The flot API allows for sorting the labels in…
Meike
  • 85
  • 5
4
votes
1 answer

Flot - display labels on top of stacked bars

I am using the code snippet from this stackoverflow question to label my flot data points. So far this has served me well, but now I have to label the overall values of stacked bars. There are two data series and so far I've managed to calculate the…
Meike
  • 85
  • 5
4
votes
2 answers

Are multiple stacked Bar charts possible using Achartengine?

I tried adding another set of values to the demo example of stacked bar charts with achartengine, but the new values introduced by me don't appear on the chart. Is Stacking bars limited to two bars? public Intent getIntent(Context context) { …
adfsafa
  • 75
  • 4
3
votes
3 answers

Is there an easy way to make an horizontal single stacked Barplot with R?

I'd appreciate it if anyone could help me with making a single stacked Barplot with R. Here is a small example of data to plot: cell_type Percentage CD20 B cells 15.00 CD4 T cells 25.00 Other cells 60.00 This is what I used, but cannot modify…
Licia
  • 47
  • 3
3
votes
0 answers

Stream of Geolocator.getPositionStream is not listen

I'm using geolocator and google_maps_flutter in my app to get user location, passing by getPositionStream. The Map is the first screen of the app, and when I get user location it work fine, and the camera of the map zoom correctly. But the user can…
Velliane
  • 65
  • 7
3
votes
1 answer

Scope in Python subplot similar to MATLAB's stackedplot()

Is there a plot function available in Python that is same as MATLAB's stackedplot()? stackedplot() in MATLAB can line plot several variables with the same X axis and are stacked vertically. Additionally, there is a scope in this plot that shows the…
AGN
  • 33
  • 5
3
votes
2 answers

CSS parent aware of stacked children

I have two images stacked on top of eachother. My solution works and I use position absolute. The downside of this approach is that the parent element is not aware of the children boundaries and does therefor not adapt the container to it. How can I…
Jens Törnell
  • 23,180
  • 45
  • 124
  • 206
3
votes
2 answers

How to represents stacked bar plot integer values in percentage

Help please, A, B and C are columns X , Y , Z, Q , R are my index values I want to make a stacked bar plot in python (matplot lib) which calculates the normalized - percentage values for each OUT_CAUSE per market and represents it in the chart. …
pratyada
  • 49
  • 4
3
votes
1 answer

Format internal lines of stacked geom_bar inside geom_tile ggplot2

this may relevant to this question: format-internal-lines-of-a-stacked-geom-bar-ggplot, but I still can not solve it since I am still beginner. I have many stacked bar for this plot, here is just sample data. I just want to keep external border and…
mjberlin15
  • 147
  • 1
  • 10
3
votes
2 answers

Receiving touch events on more then one UIView simultaneously

I have a bunch of UIViews stacked one upon the other(not nested). I want them all to react to touch, but it seems that the topmost view obscures the views beneath it, preventing them from receiving touch events. At first i thought i’d catch all…
Dubon Ya'ar
  • 349
  • 4
  • 13
3
votes
1 answer

How to plot a stacked bar chart using pandas python

I have 3 dataframes for yearly data (one for 2014, 2015 and 2016), each having 3 columns named, 'PRACTICE', 'BNF NAME', 'ITEMS'. BNF NAME refers to drug names and I am picking out 3 Ampicillin, Amoxicillin and Co-Amoxiclav. This column has…
Louise Stevens
  • 85
  • 1
  • 3
  • 9
3
votes
3 answers

Coldfusion cfchart stacked order

I have a couple of queries which pull data for use in a graph. SELECT organisationName, count(messageID)*1000/listSize as msgCount FROM clusterReferrals WHERE…
Saul
  • 1,387
  • 5
  • 23
  • 45
3
votes
1 answer

R-stacked-grouped barplot with different fill in R

I have the following code: library(ggplot2) K <- data.frame(KK=c("30", "30", "30", "30","10", "10", "10", "10"),k=c("10", "8", "5", "2","10", "8", "5", "2"), Precision=c(85.2,87.5,100,100,82.5,83.3,85.2,94.4), …
Ruser
  • 85
  • 1
  • 7
3
votes
3 answers

R graphics: Add labels to stacked bar chart

I am looking for a way to add labels, i.e. absolute values, into a stacked bar chart using the basic plot functions of R. The labels should be inside the stacked bars. Thank you!
Jens
  • 2,363
  • 3
  • 28
  • 44
3
votes
2 answers

Taking Apart A List Python

If I have a list like: X = [0, 2, 3, 4.0, 1, 0, 3, 0, 0, 0, 2, 1, 5, 2, 6, 0, 2.2, 1] How would I write code in python that takes this list and finds the number of consecutive positive numbers and then makes a list that has lists of each of those…
Laura
  • 53
  • 5
1 2
3
25 26