Refactor get_list_of_value_of_chart() for using one line 'reduce'. Add get_list_of_value_of_chart().