Refactored AnalysisView and charts comparator to implement new way of adding statistics. Work in progress