Added graphs by categories and subcategories.
Added legend.