Questions tagged [stacked-bar-chart]

A stacked bar chart is a graphical representation of data where, for each categorical group, there are two or more bars colored to represent a particular grouping. The value is represented by the length of the bar segment.

247 questions
-1
votes
1 answer

How to produce a stacked bar plot for the value counts of all columns

My dataframe has more than 10 columns and each column has values like yes/no/na/not specified. And I want to calculate the count of occurrences in each column and create stacked bar graph. Below is the image that I need:
-1
votes
1 answer

How to plot a stacked bar chart on time series data using matplotlib in python?

I am trying to plot a stacked bar chart on my data. I have data like this : received_date :[ 2016-07-28,2016-10-10,2016-11-11,2016-12-09,2017-01-10] null_count : [820145,1004174,1165932,1167409,1214356] total_count:…
-1
votes
2 answers

How Do I Sum or Count a Factor Variable in R (for use in stacked bar chart)?

I want to create a stacked bar chart in R such that it shows the sum of levels of a feature over time. The feature is of type factor, "char", with levels A, B, H, N, P, U, W. Date feature is type date. Example data from…
Angie
  • 1
-1
votes
2 answers

How to create a proportional horizontal stacked bar chart with percentages

I have been struggling to create a horizontal bar chart using python, pandas, and matplotlib. Ideally I'd like to have percentages on the chart as well. I merged 2 datasets together to get this: # dataframe df = pd.DataFrame({'Moving Violation':…
TheDon
  • 31
  • 4
-1
votes
1 answer

Plotly horizontal bar comparizon

The chart attached is from R plotly package. Does this exist or can be done in python using the plotly package?
Seph77
  • 75
  • 8
-1
votes
2 answers

Add vertical lines to each bar of a horizontal bar chart

I am generating a multi bar chart as a horizontal bar chart, and what I need to do now is to annotate (basically create a vertical line) in each of the horizontal bars at a specific place (x-axis value based) for every y-axis, where the y-axis is…
Phil S.
  • 190
  • 1
  • 3
  • 11
1 2 3
16
17