@Override
			public void actionPerformed(ActionEvent ae) {
				String id = (String)box.getSelectedItem();
				if (id != null) {
					diag.setSensor(selected_sensor);
					switch (series.getSelectedIndex()) {
					case 0:
						diag.setData("Temperature", "Celsius", diag.getTemperatureData());
						break;
					case 1:
						diag.setData("Light", "Lux", diag.getLightData());
						break;
					}
					diag.repaint();
				}
			}