#NEWLINE# @ classmethod #NEWLINE# def from_data( cls , metric_name , today_timestamp , offsets , current_values , metric_data ) : #NEWLINE# #INDENT# return cls ( metric_name , ( metric_name in color_overrides ) , current_values [ metric_name ] , tuple ( ( DeltaPresenter ( flask . url_for ( 'graph.show' , metric_name = metric_name , start = str ( timestamp ) , end = str ( today_timestamp ) ) , ( time_name [ metric_name ] - metric_data [ time_name ] [ metric_name ] ) ) for ( time_name , timestamp ) in offsets ) ) , flask . url_for ( 'graph.all_data' , metric_name = metric_name ) )