MATLAB Answers

AWi
0

plotting a bar chart with "text" categories on the x-axis

Asked by AWi
on 17 Apr 2018
Latest activity Answered by Ahmet Cecen on 17 Apr 2018
Is it possible to create a bar chart like this in MATLAB?
Any guidance or help is appreciated!
(I included a csv-file with the data for this chart.)

  0 Comments

Sign in to comment.

1 Answer

Answer by Ahmet Cecen on 17 Apr 2018

Here is a start:

example = readtable('example.CSV');
example = sortrows(example,'Group');
h = bar(table2array(example(:,3:6)),'stacked');
set(gca,'xticklabel',table2array(example(:,2)));

  0 Comments

Sign in to comment.