Questions tagged [stackedbarseries]

127 questions
2
votes
1 answer

Attribute colors by row in a barplot

I have trouble with the attributing colors in barplot to rows, they are non-existent. When I use the command: barplot(data[,3:429]) it does give me the correct pattern in terms of height, but it is all black. I have 22 different rows (each with 427…
2
votes
1 answer

Remove missing values from frequency distributions in ggplot

My data dsL<-readRDS("./Data/Derived/dsL.rds") # color palette for the outcome attcol8<-c("Never"="#4575b4", "Once or Twice"="#74add1", "Less than once/month"="#abd9e9", "About once/month"="#e0f3f8", …
andrey
  • 2,029
  • 2
  • 18
  • 23
2
votes
1 answer

Use D3.js layout.stack() to make a normalized stacked bar chart

I have something similar to: Normalized Stacked Bar Chart Is it possible / appropriate to instead of calculating the upper Y and lower Y of each layer to use the d3.layout.stack() feature instead? I'm unsure so would like to know when and when not…
Alex KeySmith
  • 16,657
  • 11
  • 74
  • 152
2
votes
2 answers

Identifying the function used in this d3 stacked bar chart example

I am working my way through d3 tutorials, and learning both d3 and javascript as I go. My goal is to understand and alter the stacked bar chart example at this URL: http://bl.ocks.org/3886208 In the code for this chart, there is this…
ouonomos
  • 700
  • 1
  • 9
  • 25
1
vote
1 answer

Character labels on top of R ggplot stacked bar have transparent background, instead of white background

I'm trying to show relative frequencies of phonemes from an specific corpus using R and ggplot stacked bars. I'm not able to show labels of each phoneme on top of the bars with a white background and black line. Labels appear with a transparent…
Fiesto
  • 15
  • 4
1
vote
1 answer

Stacked Bar type of jquery Highcharts with data from HTML Table

is there anyone have tried to use highcharts jquery with stacked bar like this one http://highcharts.com/demo/bar-stacked in that example, the data series was from an array, now i want it to get the data from html table like this…
Xinez
  • 331
  • 3
  • 6
  • 17
1
vote
0 answers

Power BI - How to add percentages to stacked column chart based on column total

My data structure I am trying to create a stacked column chart with percentages, but there is only option for percentage as grand total I am looking for something like this, I dont want a 100% stacked chart
1
vote
0 answers

R | geom_bar with both stacked and unstacked columns

I want to plot a stacked colum next to an unstacked column in a barplot (geom_bar). Using the following code both columns…
David E.S.
  • 87
  • 1
  • 7
1
vote
1 answer

How to remove extra one legend from High Charts- Bar chart (multiple & stacked)

I have stacked columns for 103 and 104. so either I have to show all 103 colors in the legend or remove the second 103 legend. How can we achieve that?
1
vote
2 answers

How to create a stacked barplot with numbers calculated in percentages?

I want to create a stacked barplot for data similar to the following. The barplot should represent the percentage of patients by race visiting each of the clinics as well as it should show the respective numbers. Can anyone please help me with this…
amty
  • 113
  • 1
  • 10
1
vote
2 answers

Stacked bar in ggplot2, with 2 series of bars (different columns)

Dataset: I have a dataset as the following: http://www.sharecsv.com/s/786597b1557929e190edf69a46f1dec4/example.csv Three columns, with YES/NO answers on each. Problem: I need to make a stacked bar chart, where A is the horizontal axis. I need two…
Carrol
  • 1,225
  • 1
  • 16
  • 29
1
vote
0 answers

How to create a StackedBarChart with specific intervals, empty space and reoccurring Row Keys in JFreeChart?

I want to create a StackedBarChart that represents Elements within a certain length. The Endresult should look something like this: I have the data for each row (Row 1 -> A from 0,5 - 3 and B from 4,5 to 7 for example). After playing around for a…
Mjoed
  • 11
  • 3
1
vote
2 answers

Spotfire - Show top values in stacked bar chart

I have a stacked bar chart that looks like this : I would like to only show the top 3 bars in terms of value, that is to say the three first bars. I tried to use the Show/Hide feature but it doesn't work as I expected. For example if I limit to…
txemsukr
  • 1,017
  • 1
  • 10
  • 32
1
vote
2 answers

Changing y-axis scale to counts using multiple color scales in stacked bar plot

I have a df as below: fruit <- data.frame(Sample=1:100, Fruit=c(rep("Apple", 10), rep("Strawberry", 25), rep("Grape", 20), rep("Watermelon", 15), rep("Lime", 11), rep("Blueberry", 10), rep("Plum",…
guidebortoli
  • 659
  • 3
  • 8
  • 16
1
vote
1 answer

D3JS stacked bar-chart over a timescale

My JSON looks like this (with some extra records that I'm not including for brevity) [{"name":"Jim","category":"TechSupport","month":"8",year:"2012","Date":"2012-08-01T04:00:00.000Z",…
Jamie
  • 428
  • 6
  • 24
1 2
3
8 9