Changeset 15622 for trunk/sources
- Timestamp:
- 01/17/18 11:29:03 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs
r15621 r15622 280 280 double? yValue; 281 281 282 if (!xAxisComboBox.DroppedDown) 283 this.xAxisValue = (string)xAxisComboBox.SelectedItem; 284 if (!yAxisComboBox.DroppedDown) 285 this.yAxisValue = (string)yAxisComboBox.SelectedItem; 282 this.xAxisValue = (string)xAxisComboBox.SelectedItem; 283 this.yAxisValue = (string)yAxisComboBox.SelectedItem; 286 284 287 285 xValue = GetValue(run, this.xAxisValue); … … 390 388 Axis yAxis = this.chart.ChartAreas[BoxPlotChartAreaName].AxisY; 391 389 int axisDimensionCount = Enum.GetNames(typeof(AxisDimension)).Count(); 392 //mkommend: combobox.SelectedIndex could not be used as this changes during hovering over possible values 393 var xSAxisSelectedIndex = xAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(xAxisValue); 394 var ySAxisSelectedIndex = yAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(yAxisValue); 395 SetCustomAxisLabels(xAxis, xSAxisSelectedIndex - axisDimensionCount); 396 SetCustomAxisLabels(yAxis, ySAxisSelectedIndex - axisDimensionCount); 397 if (xAxisValue != null) 398 xAxis.Title = xAxisValue; 399 if (yAxisValue != null) 400 yAxis.Title = yAxisValue; 390 391 SetCustomAxisLabels(xAxis, xAxisComboBox.SelectedIndex - axisDimensionCount); 392 SetCustomAxisLabels(yAxis, yAxisComboBox.SelectedIndex - axisDimensionCount); 393 394 xAxis.Title = (string)xAxisComboBox.SelectedItem; 395 yAxis.Title = (string)yAxisComboBox.SelectedItem; 401 396 } 402 397
Note: See TracChangeset
for help on using the changeset viewer.