Questions tagged [stacked]
377 questions
5
votes
6 answers
Extjs Changing color of bars in stacked bar chart
let's take this example... how to change colors of those bars?
I know I can change it via renderer but it won't change legend.
I have tried to use:
style: {fill: 'red'}
but it changes color of ever bar
I have tried to put colors in array, its not…

Nazin
- 827
- 3
- 16
- 31
5
votes
3 answers
How can I change the filled color of stacked area plot in DataFrame?
I want to change the filled color in the stacked area plots drawn with Pandas.Dataframe.
import pandas as pd
df = pd.DataFrame(np.random.rand(10, 4), columns=['a', 'b', 'c', 'd'])
ax = df.plot.area(linewidth=0);
The area plot example
Now I guess…

L. Li
- 113
- 2
- 7
5
votes
4 answers
Force stacked tabs
Is there any way to force stacked tabs? I want tabs separate of action bar (in a second row), even when landscape mode.
I am trying to force it but I can´t. For example, Twitter app in Android, when change to lanscape mode, continue showing two rows…

LopezAgrela
- 548
- 1
- 4
- 12
5
votes
2 answers
Stacked bar chart with differently ordered colors using matplotlib
I am a begginer of python. I am trying to make a horizontal barchart with differently ordered colors.
I have a data set like the one in the below:
dataset = [{'A':19, 'B':39, 'C':61, 'D':70},
{'A':34, 'B':68, 'C':32, 'D':38},
…

miyazaki_tara
- 357
- 2
- 4
- 9
4
votes
1 answer
how to handle state of the app or lifecycle in stacked or provider architecture in flutter
I am using stacked architecture in my project.
Here is my code
class InfoScreen extends StatelessWidget {
InfoViewModel viewModel;
@override
Widget build(BuildContext context) {
return ViewModelBuilder.reactive(
…

Balaji
- 1,773
- 1
- 17
- 30
4
votes
2 answers
Stacked barplot with different colors for each bar in base R
I am trying to create a figure with subplots with stacked barplots. I would like each bar to have a different color gradually changing across categories in the x-axis. I also want the stacked part of each bar to be slightly lighter than the bottom…

owl
- 1,841
- 6
- 20
- 30
4
votes
1 answer
Is there a possibility to combine position_stack and nudge_x in a stacked bar chart in ggplot2?
I want to add labels to a stacked bar chart to achieve something like this:
The goal is simple: I need to show market shares and changes versus previous year in the same graph. In theory, I would just add "nudge_x=0.5," to geom_text in the code but…

Alexander Kulikov
- 56
- 4
4
votes
2 answers
What's the input of each LSTM layer in a stacked LSTM network?
I'm having some difficulty understanding the input-output flow of layers in stacked LSTM networks. Let's say i have created a stacked LSTM network like the one below:
# parameters
time_steps = 10
features = 2
input_shape = [time_steps,…

Lio Chon
- 151
- 1
- 2
- 6
4
votes
0 answers
python plotly bar chart grouped and stacked in Jupyter-nb
I want to paint a bar chart where I can see 2 different levels in the same group, for example:
|pd.dataframe|category| col1 | col2 |
| 1 | row 1 | 3 | 7 |
| 1 | row 2 | 2 | 5 |
| 2 | row 1 | …

Krakenudo
- 182
- 1
- 17
4
votes
1 answer
Stacked bar chart, reorder by total (sum up of values) instead of value ggplot2 + dplyr
I need to stack ETT by band for each ISO3, plus reorder ISO3 by the total sum-up of the values in each ISO3. So far, the stack is working ok, but the reorder is the issue. The code is reordering by individual ETT values (instead of sum-up of ETT…

Diego Moya
- 123
- 10
4
votes
2 answers
Pandas stacked bar chart with sorted values
My goal is to create a stacked bar chart of a multilevel dataframe. The dataframe looks like this:
import pandas as pd
import numpy as np
arrays = [np.array(['bar', 'bar', 'baz', 'baz', 'foo', 'foo', 'qux', 'qux', 'qux']),
…

Pat
- 1,299
- 4
- 17
- 40
4
votes
3 answers
D3 Stacked Chart with array or JSON data
I want to create a Stacked bar chart like http://bl.ocks.org/mbostock/3886208 . But I don't want to use CSV file.
How can I create Stacked chart using array or JSON data?
In csv we are using like this :
State,Post,Comment …

Pankaj
- 1,221
- 2
- 14
- 20
4
votes
4 answers
I need to stack these two divs on top of each other while maintaining the content positions
I need to stack these two divs on top of each other but am having trouble finding a way to make it possible. I need to keep al the text inside in the same positions but need to be able to have the divs sit on top of one and other without setting…

user3233834
- 41
- 1
- 1
- 2
4
votes
1 answer
Highchart Stacked Column w/ Datetime X-axis Columns Too Thin
I am trying to display to my users the number of videos recorded per day with each one of their cameras. To do so I would like to use a stacked back (each stack showing the # of videos recorded with a given camera). Here are the options I am passing…

cdanzig
- 887
- 1
- 7
- 8
4
votes
2 answers
How to get Clicked series name when clicking on dojox.charting.Chart?
i'm trying to create a chart using dojo. I choose a StackedColumns chart. I want to make it interactive. When a user clicks on a graph columns, an hyperlink should be invoked. But to create hyperlink'url, I need the series name. Is there any way to…

javaduke
- 43
- 1
- 7