private void sensorOnXAxisRadioButton_CheckedChanged(object sender, EventArgs e) { if (this.sensorNumberRadioButton.Checked) { this.axisAssignment = AxisAssignment.SensorNumber; this.chart1.ChartAreas[0].AxisX.Title = "Sensor Number"; } else { this.axisAssignment = AxisAssignment.SensorName; this.chart1.ChartAreas[0].AxisX.Title = "Sensor Name"; } addDataToGraph(); }