#NEWLINE# @ sort_legend . setter #NEWLINE# def sort_legend( self , value ) : #NEWLINE# #INDENT# warnings . warn ( "Chart property 'sort_legend' was deprecated in 0.12             and will be removed in the future. Use `legend_sort_field` and             `legend_sort_direction` instead." ) #NEWLINE# ( self . legend_sort_field , direction ) = value [ 0 ] #NEWLINE# if value : #NEWLINE# #INDENT# self . legend_sort_direction = 'ascending' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . legend_sort_direction = 'descending'