ed) {
				data_list.sort(function(x,y){return x[data_columns.indexOf(order)] - y[data_columns.indexOf(order)];});
			} else {
				data_list.sort(function(x,y){return x[data_columns.indexOf(order)] - y[data_columns.indexOf(order)];}).reverse();
			}

			// Get the data labels
			for (let i = 0; i < Math.min(quantity_data_shown, data_list.length); ++i){
				data_labels.push(data_list[i][data_columns.indexOf("name")]);
			}

			// If the dataset we want to modify comes from the 'line' radiobuttons
			if (chart