How to plot a stacked bar graph of the count of the number of "Major /Minor" issues at any point of time?
I have data in csv file as follows:
Issue_Date Severity
20.2.2020 Major
20.2.2020 Minor
31.3.2020 Major
31.3.2020 Major
31.3.2020 Minor
01.4.2020 Major
I am reading the above CSV using pandas data frame and I tried to count the occurrence of particular Severity on a given date using group by method
data = df.groupby(["Issue_Date", "Severity"]).size()
Here "data" is a Series Output:
Issue_Date Severity
20.2.2020 Major 1
Minor 1
31.3.2020 Major 2
Minor 1
01.4.2020 Major 1
On xaxis display Issue_date and on yaxis display counts and plot stacked categories on the basis of severity.
How can I achieve it using dash plotly?