Questions tagged [stacked-area-chart]

A stacked area chart is a type of chart (or graph) that is used to display graphically quantitive data.

A stacked area chart or stacked area graph displays graphically quantitive data. It is based on the line chart. The area between axis and line are commonly emphasized with colors, textures and hatchings.

Stacked area charts are used to represent cumulated totals using numbers or percentages over time.

209 questions
4
votes
1 answer

Make a chart with area charts having both positive and negative y axis in dc or d3.js

I want to make a chart like that shown in the image below. By the looks of it, it looks like a composite chart, having two area charts added on top of it OR a stacked area chart. I am having difficulty in drawing this chart. When I tried with…
Dania
  • 1,007
  • 1
  • 14
  • 21
4
votes
1 answer

Combining stacked area chart and brushing in D3

I'm struggling to take a stacked area chart in D3 and add brushing features. I've managed to generate both the large (focus) and small (context) axes, and the plot looks fine to start. My problems is that the brushing features don't work at all.…
moustachio
  • 2,924
  • 3
  • 36
  • 68
4
votes
4 answers

Labeling individual bars in stacked ggplot bar graph

Is there an easy way to label individual "blocks" in a "stacked" bar graph such as the following. I'd like the labels to be positioned near the top of each block, but my latest approach results in somehow swapping the Texts for USA and Mexico as…
mjv
  • 73,152
  • 14
  • 113
  • 156
4
votes
1 answer

Stacked line charts or streamgraphs in Raphael?

Does anyone have any examples of stacked graphs (or stream graphs) in Raphael? I'm wondering if there is a working Raphael equivalent of this D3 streamgraph: The closest I've seen is this line chart example: I guess I could just knock up a stacked…
Richard
  • 31,629
  • 29
  • 108
  • 145
3
votes
2 answers

plotly don't show zeros in area plot

For context: I'd like to make a plot in plotly showing the evolution of an investment portfolio where the value of each asset is plotted on top of each other. Since assets are bought and sold, not every asset should be shown for the entire range of…
debsim
  • 582
  • 4
  • 19
3
votes
1 answer

assign colors to categories in stacked area graph ggplot

I have to do several stacked area graphs in R with a common list of categories, but all the categories won't be present in all the graphs. So I created a vector assigning a colour to each category and used it in scale_fill_manual. It seems to work…
Nerea Valcárcel
  • 65
  • 1
  • 1
  • 5
3
votes
1 answer

R: Create a stacked area plot of time series in ggplot2

I have a data frame that is a percentage allocation for each variable. There are four variables where the sum of the rows are equal to 1. Here is a example output of the data frame: dates A B C D 1997-01-01 0.2 0.2 0.5 0.1 1997-02-01 …
Mataunited18
  • 598
  • 1
  • 7
  • 20
3
votes
2 answers

R: Stacked area chart does not stack

I have data which I want to plot as a stacked area plot. On the x-axis I have data which is continuous and on the y axis I have continuous data which I prepare to be cumulative. This is the code I am using with some dummy…
lmz
  • 366
  • 3
  • 13
3
votes
1 answer

Highcharts: having trouble recreating stacked area chart from Excel with positive and negative values

I'm converting a series of Excel charts into Highcharts, and came across a curious situation involving a stacked area chart with both positive and negative values. Here is now the chart is displayed in Excel, along with the accompanying data points.…
3
votes
2 answers

Stacked area (ggplot2) and NA not considered

I am using ggplot2 package to plot a stacked area of species abundance. My code: #Aggragate 2 column x=IBTS[,3:4] Datehour=paste(IBTS$Date.,IBTS$Time.) Date<-strptime(Datehour,"%d/%m/%Y %H:%M") #Add a new column with the date …
3
votes
1 answer

Stacked Area Chart in Plot.ly and R

Plot.ly has a tutorial on this for Python: # Add original data x=['Winter', 'Spring', 'Summer', 'Fall'] y0_org=[40, 80, 30, 10] y1_org=[20, 10, 10, 10] y2_org=[40, 10, 60, 80] # Add data to create cumulative stacked…
Viola Hempel
  • 97
  • 2
  • 11
3
votes
0 answers

HighCharts - timeseries area and column series on same chart - irregular datetime on xAxis

I have to fill a chart with two series: timeseries area and column. both series are filled with date Date values with irregualr intervals, I need to keep the values on xAxis of the area series, while reprsenting bot series. here's the…
Luke
  • 1,794
  • 10
  • 43
  • 70
3
votes
1 answer

nvd3 stacked area chart looks glitchy how to fix?

My stacked area chart looks like this: The data I used has the same number of values and is just like in the example. THe data I used is at : http://pastebin.com/D07hja76 The code I use is also almost similar appart from the selector: var colors =…
Tarang
  • 75,157
  • 39
  • 215
  • 276
3
votes
1 answer

How to style programmatically an AreaChart series with JavaFX

I am trying in this code to style dynamically my AreaChart series but it's not working. I want to change each series background without passing by CSS. XYChart.Series series1 = new…
Mehdi Boukhechba
  • 2,471
  • 2
  • 19
  • 24
3
votes
1 answer

Stack Plot with a Color Map matplotlib

I would like to draw a stack plot with a colormap as given in Figure 5 of this paper. Here's a screenshot of the same Currently, I am able to draw a scatter plot of a similar nature. I would like to convert this scatter plot to a stack plot with…
Dexter
  • 11,311
  • 11
  • 45
  • 61
1
2
3
13 14