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
1
vote
0 answers

Stacking area line charts with different x-values in data

We use the chart-js-react to build area charts in our service. Our chart will display logs information which is time-based data like, {x:"2022-06-27T21:00:00Z", y:25}. Since the time could be a random value in each data point, so there are some…
1
vote
0 answers

D3 v7 Stacked Area Graph Tooltip Implementation

I am pretty new to D3 and as the title says I am trying to implement a D3 stacked area chart similar to Stacked area graph example. However, I am by no means a D3 expert and am having a hard time trying to get a vertical line with tooltips to show…
1
vote
3 answers

How to add non linear curve between any two points of area chart in d3.js

I recently started with d3.js.I am working on a stacked area chart in d3 which looks similar to the below chart, const stack = d3.stack().keys(["aData", "bData"]); const stackedValues = stack(data); const stackedData =…
Sksaif Uddin
  • 642
  • 1
  • 15
  • 22
1
vote
3 answers

Stacked Area Chart in Python

I'm working on an assignment from school, and have run into a snag when it comes to my stacked area chart. The data is fairly simple: 4 columns that look similar to this: Series id Year Period Value LNS140000 1948 M01 3.4 I'm trying to…
Andrea Fox
  • 23
  • 1
  • 5
1
vote
1 answer

Sort on legend in Stacked Area Chart Power Bi

I am using Stack chart on Power BI, I have used Year as x-axis, Group as legend in my graph and % of Work Order as value. I have Sort order of group as well but struggling to sort legends based on Group Sort. Now Legends are not coming in sort…
Zeeshan shaikh
  • 341
  • 1
  • 5
  • 24
1
vote
1 answer

How to plot a stacked area plot

I have a dataframe(df) with two columns: 'Foundation Type', which has 4 types of foundations (Shafts, Piles, Combination, Spread), and another column 'Vs30' with different values for parameter Vs30. Each row represents a bridge, with a type of…
Kevin
  • 39
  • 6
1
vote
0 answers

geom_area doesn't show data, supposedly because of x-axis data

I want to create a stacked area plot based on a data frame. Time <- c("W37/19","W38/19","W39/19","W40/19","W41/19") Basis <- c(20.07,20.07,20.07,20.07,20.07) AdStock <- c(5.88,5.60,5.34,5.09,4.86) TV <- c(0,0,0.54,0.93,1.14) Display <-…
setX
  • 45
  • 3
1
vote
0 answers

recharts stacked bar chart with overlapping cells

I'd like to present a comparison of response times - percentiles for product A and B, example data: [ { "category": "X", "A.90th": 100, "A.50th": 50, "B.90th": 120, "B.50th": 40 }, { "category": "Y", "A.90th": 250, "A.50th": 60, "B.90th": 200,…
Radim Vansa
  • 5,686
  • 2
  • 25
  • 40
1
vote
1 answer

python Stacked area chart

I am trying to create a stacked area chart, showing the evolution of courses and their numbers over time. So my data frame is (index=Year): Area Courses Year 1900 Agriculture 0.0 1900 …
Sorin Ir
  • 11
  • 3
1
vote
1 answer

How to dynamically add DefinitionSeries to a StackedAreaChart in Silverlight?

I want to code sth where I can dynamically add a new random-value-series to a Silverlight StackedAreaChart. That is, everytime the user clicks a button at runtime I want a new value series in a different color added to the programs main…
user751344
  • 41
  • 5
1
vote
2 answers

How to highlight the high and low values with different colors in an area series?

In LightningchartJS we can highlight the lower range as well as the higher range with different colors in an area range series. Is it possible to achieve the same in other area charts? In the current scenario, I have a bipolar area chart in which I…
1
vote
1 answer

How can I get facet_wrap to work correctly with this sorted stacked area graph?

I got some help to sort my stacked area graph in this questions: Earlier question Now I tried to add another variable, which I want to use facet_wrap on. I have tried to group by my new variable "measures", but something is wrong since I get this…
Robin Lindström
  • 622
  • 4
  • 15
1
vote
1 answer

Assign colors to groups in stacked area charts, R

I made a stacked area charts using ggplot2 like this ggplot(data, aes(x=time, y=value, fill=group)) + geom_area()+ scale_fill_manual(values = c("black", "red", "yellow", "purple", "deeppink", "blue")) In the group variable appear 6 different…
Claudio P
  • 165
  • 1
  • 8
1
vote
1 answer

Group lowest values and sort this stacked area graph

I have a time series of production in countries over time. I made this stacked area graph with the full data: The problem is that it isn't very readable (since using all countries means I can't have a legend) so I thought that I wanted to somehow…
Robin Lindström
  • 622
  • 4
  • 15
1
vote
1 answer

Single point on multiple line linear graph with Chart.js

I have a multi line linear chart made with Chart.js like this: var ctx = document.getElementById("myChart").getContext("2d"); const colors = { green: { fill: '#e0eadf', stroke: '#5eb84d', }, lightBlue: { stroke:…