Implemented filters to select data for diagrams.