%% Specify Dates Along x-Axis
% Define x as a datetime vector indicating the manufacturing dates for a particular electronic component. Define y as the number of defects for each batch of components. Display the data in a Pareto chart, and add labels to the x- and y-axes.

x = datetime(2018,5,1:5,'Format','d MMM');
y = [100 526 221 60 49];
pareto(y,x)
xlabel('Manufacturing Date')
ylabel('Defects')

% Copyright 2020 The MathWorks, Inc.