updating graph with step data