s in the chart
			var datasetIndex = dataset_list.indexOf(selected_column);			// Position of the dataset of the selected column (-1 if not found)
			var datasetLineIndex = dataset_type_list.indexOf('line');			// Position of the 'line' dataset (-1 if not found)
			var datasetBarIndex = dataset_bar_list.indexOf(selected_column);	// Position of the dataset of the selected column, excluding the 'line' dataset (-1 if not found)

			// Sort the data based on the selected order and direction
			if (direction.check