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
21
votes
3 answers

Getting a stacked area plot in R

This question is a continuation of the previous question I asked. Now I have a case where there is also a category column with Prop. So, the dataset becomes like Hour Category Prop2 00 A 25 00 B 59 00 A …
sfactor
  • 12,592
  • 32
  • 102
  • 152
17
votes
2 answers

Fill / Shade a chart above a specific Y value in PlotlyJS

I would like to fill until a specific Y value in PlotlyJS. This is as far as I got from the PlotlyJS docs: Fiddle { "x": [ "2016-01-31T00:03:57.000Z", "2016-02-12T04:35:26.000Z" ], "y": [ 100, 100 ], "fill": "tonexty", …
David
  • 15,652
  • 26
  • 115
  • 156
11
votes
4 answers

ggplot holes in stacked area chart

Here is a link to my data. I use the following code: #read in data data = read.csv("ggplot_data.csv") #order by group then year data = arrange(data, group, year) #generage ggplot stacked area chart plot = ggplot(data, aes(x=year,y=value,…
Jim
  • 715
  • 2
  • 13
  • 26
8
votes
1 answer

Label Areas in Python Matplotlib stackplot

I would like to generate labels inside the areas of a matplotlib stackplot. I would settle for labeling a line used to bound the area. Consider the example: import numpy as np from matplotlib import pyplot as plt fnx = lambda : np.random.randint(5,…
Docuemada
  • 1,703
  • 2
  • 25
  • 44
8
votes
1 answer

Create a 100 % stacked area chart with matplotlib

I was wondering how to create a 100 % stacked area chart in matplotlib. At the matplotlib page I couldn't find an example for it. Somebody here can show me how to achieve that?
Thomas Becker
  • 471
  • 3
  • 8
  • 16
7
votes
1 answer

R colors - many distinctive colors that are still pretty

I am curious if you have some tips on colour-brewing in R, for many distinctive colours, in a way that the graph is still good-looking. I need a fair amount of distinctive colours (24 at least, probably will need even more, ~50) for stacked area…
Melinda
  • 107
  • 1
  • 6
6
votes
1 answer

How to name sections on x axis that are separated by vertical lines in an R plot (package ggplot2)?

I have created a stacked area plot with ggplot2 and added vertical lines at some positions on the x-axis. I now want to name the sections that are separated by these vertical lines. An example of it could look like it is shown on the example plot.…
Matthias Munz
  • 3,583
  • 4
  • 30
  • 47
5
votes
1 answer

How to fix Error in f(...) : Aesthetics can not vary with a ribbon

I'm using ggplot2 to create a stacked area chart showing footprint (area) of a number of different research stations over time. I would like something that looks like the chart below, but with Area on the y axis and colored by the different research…
cms
  • 83
  • 1
  • 2
  • 4
5
votes
2 answers

Stacked area plot in Python with positive and negative values

I would like to do a stacked area plot where some groups are positive so will appear above the x-axis (stacked) and others are negative so will appear below the x-axis. At the moment when I do stackplot it just adds the actual values so the group…
R_McAlister
  • 51
  • 1
  • 2
5
votes
2 answers

How fix labels placement so them not overlap in DevExpress js chart?

I need to put labels to all my charts. But the labels overlap for the density of the chart. I attach a sample. I need to separate them. How? I don't have modified the CSS of the lib. Using last version. This is a sample code, can be pasted on…
mamcx
  • 15,916
  • 26
  • 101
  • 189
5
votes
1 answer

Area Chart with smooth lines possible with D3.js?

I am creating area chart with D3.js and I make it with smooth line. Is it possible? In my code I just create svg and put line and area on. I use dummy data. Here is my code below: http://jsfiddle.net/sota0805/mv48H/ // Data var lineData = [ { "x":…
Sm Yamashita
  • 244
  • 4
  • 14
4
votes
1 answer

How to create an Area plot

Is there any way to create an Area plot in Seaborn. I checked the documentation but I couldn't able to find it. Here is the data that I want to plot. import pandas as pd import seaborn as sns import matplotlib.pyplot as plt data = {'launch_year':…
bhola prasad
  • 63
  • 1
  • 1
  • 4
4
votes
2 answers

How do I make a stacked area chart with Prefuse?

I would like to make a stacked area chart with prefuse similar to the folowing: http://prefuse.org/gallery/namevoyager/ I'm not quite sure where to start however, and there's no sample code for these charts. I did find…
Jay Askren
  • 10,282
  • 14
  • 53
  • 75
4
votes
3 answers

Reverse stacking order in ggplot2 geom_order

I'm trying to follow this ggplot2 tutorial (unfrotunately it doesn't have comments to ask my question there) on area plots, but for some reason my output is different that the author's output. I execute the following code: library(ggplot2)…
Vasilis
  • 2,721
  • 7
  • 33
  • 54
4
votes
1 answer

Format hover text to $ in stacked area plot (R / Plot.ly)

How can I format plot.ly's 'text' to a dollar amount (or anything else) like this - $4,000,000 (with commas) - in R? Even though my 'real' data is already formatted as $, once I do hoverinfo='x+text' in the add_trace function, it loses the…
Viola Hempel
  • 97
  • 2
  • 11
1
2 3
13 14