Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3726


Ignore:
Timestamp:
05/09/10 00:46:40 (15 years ago)
Author:
mkommend
Message:

corrected behavior of RunCollectionBubbleChart (ticket #970)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs

    r3707 r3726  
    4343    private enum AxisDimension { Index = 0 }
    4444
     45    private string xAxisValue;
     46    private string yAxisValue;
     47    private string sizeAxisValue;
     48
    4549    private Dictionary<int, Dictionary<object, double>> categoricalMapping;
    4650    private Dictionary<IRun, double> xJitter;
     
    227231      Series series = this.chart.Series[0];
    228232      int row = this.Content.ToList().IndexOf(run);
    229       xValue = GetValue(run, (string)xAxisComboBox.SelectedItem);
    230       yValue = GetValue(run, (string)yAxisComboBox.SelectedItem);
    231       sizeValue = GetValue(run, (string)sizeComboBox.SelectedItem);
     233
     234      if (!xAxisComboBox.DroppedDown)
     235        this.xAxisValue = (string)xAxisComboBox.SelectedItem;
     236      if (!yAxisComboBox.DroppedDown)
     237        this.yAxisValue = (string)yAxisComboBox.SelectedItem;
     238      if (!sizeComboBox.DroppedDown)
     239        this.sizeAxisValue = (string)sizeComboBox.SelectedItem;
     240
     241      xValue = GetValue(run, this.xAxisValue);
     242      yValue = GetValue(run, this.yAxisValue);
     243      sizeValue = GetValue(run, this.sizeAxisValue);
     244
    232245      if (xValue.HasValue && yValue.HasValue && sizeValue.HasValue) {
    233246        xValue = xValue.Value;
Note: See TracChangeset for help on using the changeset viewer.