Refactored the real time results graph to have the source code simpler, allowing to have the same graph used for a class.