필터 지우기
필터 지우기

How do I make 2 bar stacked per month (x-axis)?

조회 수: 2 (최근 30일)
Phoenix
Phoenix 2019년 7월 17일
댓글: Phoenix 2019년 7월 17일
Hi everyone,
I would just like to ask on how can I make a similar plot using MATLAB from the given data I've attached in excel? My goal is to create a plot similar to the figure below which I created initially with Tableau. I came across this forum but it didn't work out well for my plotting(https://uk.mathworks.com/matlabcentral/fileexchange/32884-plot-groups-of-stacked-bars). Thank you for your help. Have a good day.

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 7월 17일
편집: KALYAN ACHARJYA 2019년 7월 17일
Test file is attched.
data=xlsread('sample_file_test.xlsx');
bar(data,'stacked');
pic11.png
  댓글 수: 3
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 7월 17일
The total number of bar is depends on data (row) in excel file. Number of stack depends on Col in excel file.
Hope it Helps!
Phoenix
Phoenix 2019년 7월 17일
Yeah? I know that. That's quite basic in plotting bar stacked charts. anyway, thanks for your intention to help. :)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Bar Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by