Modified to plot graph for individual category result