);
							mainChart.update();
						}
					}
				}
			} else {
				// If the dataset we want to modify comes from the 'bar' checkboxes
				// If the item is checked, add the dataset. Otherwise, remove the dataset
				if (selected_item.checked){
					
					// If the selected column is shown in a 'line' dataset, remove it
					if (datasetIndex == datasetLineIndex && datasetLineIndex >= 0) {
						$('#radiobutton-'+selected_column).prop("checked", false);
						$('#radiobutton-none').prop("checked", true);
			